From 98b29ec9ec1b5df542eac6b29b27e61766e85c89 Mon Sep 17 00:00:00 2001 From: "491733638@qq.com" <491733638@qq.com> Date: Tue, 16 Apr 2024 16:47:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=BD=93=E5=BE=AE=E4=BF=A1=E8=BF=94?= =?UTF-8?q?=E5=9B=9EINVALID=5FREQUEST=E3=80=81SYSTEM=5FERROR=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81=E6=97=B6=EF=BC=8C=E5=BA=94=E8=AF=A5=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeepay/pay/channel/wxpay/WxpayTransferService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayTransferService.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayTransferService.java index ea9911f..b79f7cf 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayTransferService.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/wxpay/WxpayTransferService.java @@ -198,8 +198,12 @@ public class WxpayTransferService implements ITransferService { } catch (WxPayException e) { - // 如果查询单号对应的数据不存在,那么数据不存在的原因可能是:(1)付款还在处理中;(2)付款处理失败导致付款订单没有落地,务必再次查询确认此次付款的结果。 - if("NOT_FOUND".equalsIgnoreCase(e.getErrCode())){ + + // NOT_FOUND:那么数据不存在的原因可能是:(1)付款还在处理中;(2)付款处理失败导致付款订单没有落地,务必再次查询确认此次付款的结果。 + // INVALID_REQUEST:请等待批次处理完成后再查询明细单据 + // SYSTEM_ERROR: 系统错误 + // 当出现以上情况时,继续查询,不能直接返回错误信息 + if("NOT_FOUND".equalsIgnoreCase(e.getErrCode()) || "INVALID_REQUEST".equalsIgnoreCase(e.getErrCode()) || "SYSTEM_ERROR".equalsIgnoreCase(e.getErrCode())){ return ChannelRetMsg.waiting(); } From 4d3dcca0638e34de3fd3f9f3d41468f4036c3bd6 Mon Sep 17 00:00:00 2001 From: "491733638@qq.com" <491733638@qq.com> Date: Tue, 16 Apr 2024 17:32:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=98=8E=E7=A1=AE=E8=BD=AC=E8=B4=A6?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=B6=EF=BC=8C=E8=AE=B0=E5=BD=95=E8=BD=AC?= =?UTF-8?q?=E8=B4=A6=E5=A4=B1=E8=B4=A5=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeequan/jeepay/pay/service/TransferOrderReissueService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/TransferOrderReissueService.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/TransferOrderReissueService.java index 9da0937..90351fd 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/TransferOrderReissueService.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/TransferOrderReissueService.java @@ -78,7 +78,7 @@ public class TransferOrderReissueService { }else if(channelRetMsg.getChannelState() == ChannelRetMsg.ChannelState.CONFIRM_FAIL){ // 转账失败 - transferOrderService.updateIng2Fail(transferId, channelRetMsg.getChannelOrderId(), channelRetMsg.getChannelUserId(), channelRetMsg.getChannelErrCode()); + transferOrderService.updateIng2Fail(transferId, channelRetMsg.getChannelOrderId(), channelRetMsg.getChannelErrCode(),channelRetMsg.getChannelErrMsg()); payMchNotifyService.transferOrderNotify(transferOrderService.getById(transferId)); }