mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-06 05:37:48 +08:00
🎨 微信现金红包发送接口信息处理优化,针对处理中的变态错误信息不抛出异常
This commit is contained in:
parent
eb6a578e1e
commit
1720e5137f
@ -1,5 +1,7 @@
|
|||||||
package com.github.binarywang.wxpay.bean.result;
|
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 com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@ -54,4 +56,14 @@ public class WxPaySendRedpackResult extends BaseWxPayResult implements Serializa
|
|||||||
sendListid = readXmlString(d, "send_listid");
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user