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.setOutTradeNo(result.getTransactionId());
callbackInfo.setOutTradeNo(result.getRefundId());
// 退款号
callbackInfo.setTradeNo(result.getRefundId());
callbackInfo.setTradeNo(result.getOutRefundNo());
// 退款状态 - 成功
if (Objects.equals(RefundStatus.SUCCESS, result.getRefundStatus())){
callbackInfo.setTradeStatus(RefundStatusEnum.SUCCESS.getCode());