浏览代码

!1112 【优化】日志记录发起微信支付异常信息
Merge pull request !1112 from 杨宇庆/N/A

芋道源码 7 月之前
父节点
当前提交
1753f2d1e4

+ 1 - 0
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
                     throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion()));
             }
         } catch (WxPayException e) {
+            log.error("订单号:{} 发起微信支付异常", reqDTO.getOutTradeNo(), e);
             String errorCode = getErrorCode(e);
             String errorMessage = getErrorMessage(e);
             return PayOrderRespDTO.closedOf(errorCode, errorMessage,