From 9077f14bae0ce0d329899bfb73bb2175f211222c Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Mon, 28 Aug 2023 13:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E5=8C=85=E6=94=AF=E4=BB=98=20Client?= =?UTF-8?q?=20=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pay/framework/pay/wallet/WalletPayClient.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/framework/pay/wallet/WalletPayClient.java b/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/framework/pay/wallet/WalletPayClient.java index 00cec3366..18d784005 100644 --- a/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/framework/pay/wallet/WalletPayClient.java +++ b/yudao-module-pay/yudao-module-pay-biz/src/main/java/cn/iocoder/yudao/module/pay/framework/pay/wallet/WalletPayClient.java @@ -47,14 +47,15 @@ public class WalletPayClient extends DelegatePayClient { reqDTO.getOutTradeNo(), "WALLET_PAY_SUCCESS"); } catch (Throwable ex) { log.error("[doUnifiedOrder] 失败", ex); - String errorCode = String.valueOf(INTERNAL_SERVER_ERROR); + Integer errorCode = INTERNAL_SERVER_ERROR.getCode(); String errorMsg = INTERNAL_SERVER_ERROR.getMsg(); if (ex instanceof ServiceException) { ServiceException serviceException = (ServiceException) ex; - errorCode = String.valueOf(serviceException.getCode()); + errorCode = serviceException.getCode(); errorMsg = serviceException.getMessage(); } - return PayOrderRespDTO.closedOf(errorCode, errorMsg, reqDTO.getOutTradeNo(), ex); + return PayOrderRespDTO.closedOf(String.valueOf(errorCode), errorMsg, + reqDTO.getOutTradeNo(), ""); } } @@ -77,14 +78,15 @@ public class WalletPayClient extends DelegatePayClient { reqDTO.getOutRefundNo(), "WALLET_REFUND_SUCCESS"); } catch (Throwable ex) { log.error("[doUnifiedRefund] 失败", ex); - String errorCode = String.valueOf(INTERNAL_SERVER_ERROR); + Integer errorCode = INTERNAL_SERVER_ERROR.getCode(); String errorMsg = INTERNAL_SERVER_ERROR.getMsg(); if (ex instanceof ServiceException) { ServiceException serviceException = (ServiceException) ex; - errorCode = String.valueOf(serviceException.getCode()); + errorCode = serviceException.getCode(); errorMsg = serviceException.getMessage(); } - return PayRefundRespDTO.failureOf(errorCode, errorMsg, reqDTO.getOutRefundNo(), ex); + return PayRefundRespDTO.failureOf(String.valueOf(errorCode), errorMsg, + reqDTO.getOutRefundNo(), ""); } }