Commit c6f67a5a0236a38090fc0b5a394894234c65fcf6

Authored by YunaiV
1 parent 1753f2d1

!1112【代码优化】支付:微信支付退款时,日志记录发起微信支付异常信息

yudao-module-pay/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java
... ... @@ -88,7 +88,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<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 + log.error("[doUnifiedOrder][退款({}) 发起微信支付异常", reqDTO, e);
92 92 String errorCode = getErrorCode(e);
93 93 String errorMessage = getErrorMessage(e);
94 94 return PayOrderRespDTO.closedOf(errorCode, errorMessage,
... ...