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

Merge pull request !1112 from 杨宇庆/N/A
This commit is contained in:
芋道源码 2024-10-27 07:15:08 +00:00 committed by Gitee
commit 1753f2d1e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC
throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion())); throw new IllegalArgumentException(String.format("未知的 API 版本(%s)", config.getApiVersion()));
} }
} catch (WxPayException e) { } catch (WxPayException e) {
log.error("订单号:{} 发起微信支付异常", reqDTO.getOutTradeNo(), e);
String errorCode = getErrorCode(e); String errorCode = getErrorCode(e);
String errorMessage = getErrorMessage(e); String errorMessage = getErrorMessage(e);
return PayOrderRespDTO.closedOf(errorCode, errorMessage, return PayOrderRespDTO.closedOf(errorCode, errorMessage,