Skip to content

Commit 9d4847d

Browse files
committed
#999 微信支付发送红包接口中加入结果是否成功的校验判断逻辑
1 parent 9fd7f7d commit 9d4847d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/BaseWxPayServiceImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,9 @@ public WxPaySendRedpackResult sendRedpack(WxPaySendRedpackRequest request) throw
193193
}
194194

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

200201
@Override

0 commit comments

Comments
 (0)