mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
钱包支付 Client 失败问题修改
This commit is contained in:
parent
7237bc07bb
commit
9077f14bae
@ -47,14 +47,15 @@ public class WalletPayClient extends DelegatePayClient<NonePayClientConfig> {
|
||||
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<NonePayClientConfig> {
|
||||
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(), "");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user