mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-07-15 05:13:16 +08:00
🐛 #1330 修复微信支付回调通知sign_type缺失导致验签失败的问题
This commit is contained in:
parent
1d50acace7
commit
3e3d4e8345
@ -300,6 +300,18 @@ public class WxPayOrderNotifyResult extends BaseWxPayResult {
|
|||||||
@XStreamAlias("rate_value")
|
@XStreamAlias("rate_value")
|
||||||
private String rateValue;
|
private String rateValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <pre>
|
||||||
|
* 字段名:签名类型.
|
||||||
|
* 变量名:sign_type
|
||||||
|
* 类型:String(32)
|
||||||
|
* 示例值:HMAC-SHA256
|
||||||
|
* 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5
|
||||||
|
* </pre>
|
||||||
|
*/
|
||||||
|
@XStreamAlias("sign_type")
|
||||||
|
private String signType;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException {
|
public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException {
|
||||||
//防止伪造成功通知
|
//防止伪造成功通知
|
||||||
|
Loading…
Reference in New Issue
Block a user