微信退款异常添加日志信息

This commit is contained in:
terrfly 2021-11-09 09:27:11 +08:00
parent 607145ec6a
commit 27c60d2ae2
1 changed files with 4 additions and 0 deletions

View File

@ -123,11 +123,13 @@ public class WxpayRefundService extends AbstractRefundService {
}
return channelRetMsg;
} catch (WxPayException e) {
log.error("微信退款WxPayException异常: ", e);
ChannelRetMsg channelRetMsg = ChannelRetMsg.confirmFail();
WxpayKit.commonSetErrInfo(channelRetMsg, e);
return channelRetMsg;
} catch (Exception e) {
log.error("微信退款Exception异常: ", e);
return ChannelRetMsg.sysError(e.getMessage());
}
}
@ -177,8 +179,10 @@ public class WxpayRefundService extends AbstractRefundService {
}
return channelRetMsg;
} catch (WxPayException e) {
log.error("微信退款查询WxPayException异常: ", e);
return ChannelRetMsg.sysError(e.getReturnMsg());
} catch (Exception e) {
log.error("微信退款查询Exception异常: ", e);
return ChannelRetMsg.sysError(e.getMessage());
}
}