Commit 1753f2d1e47b07af30856abacd7d51c901206bd2
Committed by
Gitee
!1112 【优化】日志记录发起微信支付异常信息
Merge pull request !1112 from 杨宇庆/N/A
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, |