Ver código fonte

fix 微信支付回调

skyline 2 anos atrás
pai
commit
2ebfd49482

+ 1 - 1
service/src/main/java/com/kym/service/wechat/impl/WxPayServiceImpl.java

@@ -479,7 +479,7 @@ public class WxPayServiceImpl implements WxPayService {
                 // 冻结金额扣减此次退款金额
                 accountService.lambdaUpdate().setSql(" frozen_amount = (frozen_amount - %d)".formatted(refundNotification.getAmount().getRefund().intValue())).eq(Account::getUserId, refundLog.getUserId()).update();
                 // 更新资金流水
-                var walletDetail = walletDetailService.getWalletDetailByOrderNo(refundNotification.getOutTradeNo(), WalletDetail.TYPE_提现);
+                var walletDetail = walletDetailService.getWalletDetailByOrderNo(refundNotification.getOutRefundNo(), WalletDetail.TYPE_提现);
                 walletDetail.setStatus(WalletDetail.STATUS_已确认)  //已确认
                         .setCurrency(refundNotification.getAmount().getCurrency())
                         .setAmount(refundNotification.getAmount().getRefund().intValue())