mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-14 22:00:25 +00:00
perf 优化未授权错误提示, 响应码改为40x
This commit is contained in:
@@ -44,7 +44,6 @@ public class WechatRefundSyncV2Service {
|
|||||||
var result = wxPayService.refundQuery(request);
|
var result = wxPayService.refundQuery(request);
|
||||||
// 网关退款号
|
// 网关退款号
|
||||||
syncResult.setOutRefundNo(result.getTransactionId())
|
syncResult.setOutRefundNo(result.getTransactionId())
|
||||||
|
|
||||||
.setAmount(PayUtil.conversionAmount(result.getRefundFee()));
|
.setAmount(PayUtil.conversionAmount(result.getRefundFee()));
|
||||||
// 交易不存在
|
// 交易不存在
|
||||||
if (CollUtil.isEmpty(result.getRefundRecords())){
|
if (CollUtil.isEmpty(result.getRefundRecords())){
|
||||||
@@ -66,7 +65,7 @@ public class WechatRefundSyncV2Service {
|
|||||||
syncResult.setRefundStatus(RefundStatusEnum.CLOSE);
|
syncResult.setRefundStatus(RefundStatusEnum.CLOSE);
|
||||||
}
|
}
|
||||||
} catch (WxPayException e) {
|
} catch (WxPayException e) {
|
||||||
log.error("微信退款订单查询V3失败", e);
|
log.error("微信退款订单查询V2失败", e);
|
||||||
syncResult.setSyncErrorMsg(e.getCustomErrorMsg())
|
syncResult.setSyncErrorMsg(e.getCustomErrorMsg())
|
||||||
.setSyncSuccess(false)
|
.setSyncSuccess(false)
|
||||||
.setRefundStatus(RefundStatusEnum.FAIL);
|
.setRefundStatus(RefundStatusEnum.FAIL);
|
||||||
|
Reference in New Issue
Block a user