无关风月
17 小时以前 b5ead35c1d955f2a0e2e10da79254860d0ba95e9
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")