🎨 微信现金红包发送接口信息处理优化,针对处理中的变态错误信息不抛出异常

This commit is contained in:
Binary Wang 2020-05-30 21:40:38 +08:00
parent eb6a578e1e
commit 1720e5137f

View File

@ -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;
}
}
}
}