From 9d4847df214ad6af50566046a7992f055876a44a Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sat, 13 Apr 2019 21:33:37 +0800 Subject: [PATCH] =?UTF-8?q?#999=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=BA=A2=E5=8C=85=E6=8E=A5=E5=8F=A3=E4=B8=AD?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=BB=93=E6=9E=9C=E6=98=AF=E5=90=A6=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E7=9A=84=E6=A0=A1=E9=AA=8C=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java index b202e1808..24677ba90 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java +++ b/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