Commit c3e1374b1e08df8041368c42173f90a774d08f09

Authored by 杨宇庆
Committed by Gitee
1 parent 7fbdf24b

【优化】日志记录发起微信支付异常信息

Signed-off-by: 杨宇庆 <hiyyq@qq.com>
yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java
... ... @@ -88,6 +88,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient&lt;WxPayClientC
88 88 throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion()));
89 89 }
90 90 } catch (WxPayException e) {
  91 + log.error("订单号:{} 发起微信支付异常", reqDTO.getOutTradeNo(), e);
91 92 String errorCode = getErrorCode(e);
92 93 String errorMessage = getErrorMessage(e);
93 94 return PayOrderRespDTO.closedOf(errorCode, errorMessage,
... ...