Skip to content

Commit 8b3a733

Browse files
bongq417binarywang
authored andcommitted
🐛 #1330 修复微信支付回调通知sign_type确实导致验签失败的问题
1 parent 1d50aca commit 8b3a733

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayOrderNotifyResult.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,18 @@ public class WxPayOrderNotifyResult extends BaseWxPayResult {
300300
@XStreamAlias("rate_value")
301301
private String rateValue;
302302

303+
/**
304+
* <pre>
305+
* 字段名:签名类型.
306+
* 变量名:sign_type
307+
* 类型:String(32)
308+
* 示例值:HMAC-SHA256
309+
* 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5
310+
* </pre>
311+
*/
312+
@XStreamAlias("sign_type")
313+
private String signType;
314+
303315
@Override
304316
public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException {
305317
//防止伪造成功通知

0 commit comments

Comments
 (0)