diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/RechargePayHandler.java b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/RechargePayHandler.java index bf591288..909e2c84 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/RechargePayHandler.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/transactionBill/service/impl/RechargePayHandler.java @@ -124,8 +124,8 @@ public class RechargePayHandler implements AfterPay, AfterRefund { // 操作成功 if (result != null && result == 1) { - // 充值设备,尝试3次 - transactionBillService.rechargeDevice(bill.getBillId(), 3); + // 充值设备,尝试2次 + transactionBillService.rechargeDevice(bill.getBillId(), 2); // 5秒后,设备设置语音播报 scheduledExecutorService.schedule(() -> {