diff --git a/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/pay/tm/TmPayService.java b/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/pay/tm/TmPayService.java index 9a06f034..996eed75 100644 --- a/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/pay/tm/TmPayService.java +++ b/smart-switch-ruoyi/smart-switch-common/src/main/java/com/ruoyi/common/pay/tm/TmPayService.java @@ -53,7 +53,7 @@ public class TmPayService { */ public RefundInfo refund(RefundAble refundAble) { HashMap body = new HashMap<>(); - body.put("refundFee", String.valueOf(refundAble.refundAmount().getTotal())); + body.put("refundFee", String.valueOf(refundAble.refundAmount().getRefund())); body.put("terminalType", "1"); body.put("outTradeId", refundAble.refundOutTradeNo()); body.put("shopId", config.getShopId());