🐛 #1330 修复微信支付回调通知sign_type缺失导致验签失败的问题

This commit is contained in:
bongQ417 2019-12-25 15:00:32 +08:00 committed by Binary Wang
parent 1d50acace7
commit 3e3d4e8345

View File

@ -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 {
//防止伪造成功通知