Skip to content

Commit

Permalink
🐛 #1330 修复微信支付回调通知sign_type缺失导致验签失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
bongq417 authored and binarywang committed Dec 26, 2019
1 parent 1d50aca commit 3e3d4e8
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ public class WxPayOrderNotifyResult extends BaseWxPayResult {
@XStreamAlias("rate_value")
private String rateValue;

/**
* <pre>
* 字段名:签名类型.
* 变量名:sign_type
* 类型:String(32)
* 示例值:HMAC-SHA256
* 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5
* </pre>
*/
@XStreamAlias("sign_type")
private String signType;

@Override
public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException {
//防止伪造成功通知
Expand Down

0 comments on commit 3e3d4e8

Please sign in to comment.