瀏覽代碼

#999 微信支付发送红包接口中加入结果是否成功的校验判断逻辑

master
Binary Wang 5 年之前
父節點
當前提交
9d4847df21
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

+ 3
- 2
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java 查看文件

@@ -193,8 +193,9 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
}

String responseContent = this.post(url, request.toXML(), true);
//无需校验,因为没有返回签名信息
return BaseWxPayResult.fromXML(responseContent, WxPaySendRedpackResult.class);
final WxPaySendRedpackResult result = BaseWxPayResult.fromXML(responseContent, WxPaySendRedpackResult.class);
result.checkResult(this, request.getSignType(), true);
return result;
}

@Override


Loading…
取消
儲存