Commit c3e1374b1e08df8041368c42173f90a774d08f09
Committed by
Gitee
1 parent
7fbdf24b
【优化】日志记录发起微信支付异常信息
Signed-off-by: 杨宇庆 <hiyyq@qq.com>
Showing
1 changed file
with
1 additions
and
0 deletions
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<WxPayClientC | @@ -88,6 +88,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC | ||
| 88 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); | 88 | throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); |
| 89 | } | 89 | } |
| 90 | } catch (WxPayException e) { | 90 | } catch (WxPayException e) { |
| 91 | + log.error("订单号:{} 发起微信支付异常", reqDTO.getOutTradeNo(), e); | ||
| 91 | String errorCode = getErrorCode(e); | 92 | String errorCode = getErrorCode(e); |
| 92 | String errorMessage = getErrorMessage(e); | 93 | String errorMessage = getErrorMessage(e); |
| 93 | return PayOrderRespDTO.closedOf(errorCode, errorMessage, | 94 | return PayOrderRespDTO.closedOf(errorCode, errorMessage, |