fix: 微信V2退款回调退款号处理失败

This commit is contained in:
bootx
2024-12-29 10:28:19 +08:00
parent d1238dd43c
commit 2b8d8b7ee0
2 changed files with 3 additions and 3 deletions

View File

@@ -128,9 +128,9 @@ public class WechatRefundCallbackService {
// 回调数据 // 回调数据
callbackInfo.setCallbackData(BeanUtil.beanToMap(result)); callbackInfo.setCallbackData(BeanUtil.beanToMap(result));
// 网关退款号 // 网关退款号
callbackInfo.setOutTradeNo(result.getTransactionId()); callbackInfo.setOutTradeNo(result.getRefundId());
// 退款号 // 退款号
callbackInfo.setTradeNo(result.getRefundId()); callbackInfo.setTradeNo(result.getOutRefundNo());
// 退款状态 - 成功 // 退款状态 - 成功
if (Objects.equals(RefundStatus.SUCCESS, result.getRefundStatus())){ if (Objects.equals(RefundStatus.SUCCESS, result.getRefundStatus())){
callbackInfo.setTradeStatus(RefundStatusEnum.SUCCESS.getCode()); callbackInfo.setTradeStatus(RefundStatusEnum.SUCCESS.getCode());

View File

@@ -39,7 +39,7 @@ public class RefundOrder extends MchAppBaseEntity implements ToResult<RefundOrde
/** 通道支付订单号 */ /** 通道支付订单号 */
private String outOrderNo; private String outOrderNo;
/** 支付标题 */ /** 退款标题 */
private String title; private String title;
/** 退款号 */ /** 退款号 */