From 1720e5137fef5731bbb090d211983d2886c7f963 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sat, 30 May 2020 21:40:38 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=BE=AE=E4=BF=A1=E7=8E=B0=E9=87=91?= =?UTF-8?q?=E7=BA=A2=E5=8C=85=E5=8F=91=E9=80=81=E6=8E=A5=E5=8F=A3=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A4=84=E7=90=86=E4=BC=98=E5=8C=96=EF=BC=8C=E9=92=88?= =?UTF-8?q?=E5=AF=B9=E5=A4=84=E7=90=86=E4=B8=AD=E7=9A=84=E5=8F=98=E6=80=81?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E4=B8=8D=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxpay/bean/result/WxPaySendRedpackResult.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPaySendRedpackResult.java b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPaySendRedpackResult.java index fd786d9f2..f6293c07c 100644 --- a/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPaySendRedpackResult.java +++ b/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result/WxPaySendRedpackResult.java @@ -1,5 +1,7 @@ package com.github.binarywang.wxpay.bean.result; +import com.github.binarywang.wxpay.exception.WxPayException; +import com.github.binarywang.wxpay.service.WxPayService; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.Data; import lombok.EqualsAndHashCode; @@ -54,4 +56,14 @@ public class WxPaySendRedpackResult extends BaseWxPayResult implements Serializa sendListid = readXmlString(d, "send_listid"); } + @Override + public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException { + try { + super.checkResult(wxPayService, signType, checkSuccess); + } catch (WxPayException e) { + if (!"PROCESSING".equals(e.getErrCode())) { + throw e; + } + } + } }