ruoyi-service/ruoyi-user/src/main/java/com/ruoyi/user/controller/WithdrawController.java
@@ -79,11 +79,17 @@ return R.loginExpire("登录失效!"); } if (redisService.hasKey(orderId)) { return R.repeatedSubmission("请勿重复提交!"); return R.fail("该笔订单已申请提现"); // return R.repeatedSubmission("请勿重复提交!"); } redisService.setCacheObject(orderId, "1", 10L, TimeUnit.SECONDS); Boolean b = withdrawService.confirmWithdraw(orderId, loginUser.getUserid()); return R.ok(withdrawService.confirmWithdraw(orderId, loginUser.getUserid())); if (b){ return R.ok(); }else { return R.fail("该笔订单已申请提现"); } } @GetMapping("/withdrawRecord")