From 0ababc615d5b381f856ca84fb8dc715cdb2c4b5b Mon Sep 17 00:00:00 2001
From: peter <14100000001@qq.com>
Date: Thu, 15 Jan 2026 14:22:53 +0800
Subject: [PATCH] 2-10演示站搭建

---
 src/main/java/com/nq/controller/protol/UserWithdrawController.java |   59 ++++++++++++++++++++++++++++++-----------------------------
 1 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/src/main/java/com/nq/controller/protol/UserWithdrawController.java b/src/main/java/com/nq/controller/protol/UserWithdrawController.java
index f513fb5..10df28c 100644
--- a/src/main/java/com/nq/controller/protol/UserWithdrawController.java
+++ b/src/main/java/com/nq/controller/protol/UserWithdrawController.java
@@ -45,36 +45,37 @@
     public ServerResponse outMoney(@RequestParam(value = "amt") String amt,@RequestParam(value = "bankId") String bankId,
                                    @RequestParam(value = "assetsType") String accsetType,
                                    HttpServletRequest request) {
+        return ServerResponse.createByErrorMsg("请联系客服!",request);
 
-        ServerResponse serverResponse = null;
-        User user = this.iUserService.getCurrentRefreshUser(request);
-
-
-        String requestId = user.getId() + "_" + amt + "_" + bankId;
-        if (user.getId() == 1888 || user.getId() == 1752) {
-            return ServerResponse.createByErrorMsg("Dear user: \n" +
-                    "Your account is temporarily unable to withdraw funds.",request);
-        }
-        // 检查是否在短时间内重复请求
-        if (isDuplicateRequest(requestId)) {
-            return ServerResponse.createByErrorMsg("重复提交,请稍后再试。!",request);
-        }
-
-        // 更新请求时间戳
-        requestTimestamps.put(requestId, System.currentTimeMillis());
-
-        try {
-            if (!isIntegerGreaterThan100(amt)) {
-                return ServerResponse.createByErrorMsg("请输入整数!",request);
-            }
-            synchronized (user.getId()){
-                serverResponse = this.iUserWithdrawService.outMoney(amt, user.getWithPwd(), accsetType,bankId,request);
-            }
-        } catch (Exception e) {
-            log.error("出金异常 e = {}", e);
-            serverResponse = ServerResponse.createByErrorMsg("提现异常,请稍后再试",request);
-        }
-        return serverResponse;
+//        ServerResponse serverResponse = null;
+//        User user = this.iUserService.getCurrentRefreshUser(request);
+//
+//
+//        String requestId = user.getId() + "_" + amt + "_" + bankId;
+//        if (user.getId() == 2383) {
+//            return ServerResponse.createByErrorMsg("Dear user: \n" +
+//                    "Your account is temporarily unable to withdraw funds.",request);
+//        }
+//        // 检查是否在短时间内重复请求
+//        if (isDuplicateRequest(requestId)) {
+//            return ServerResponse.createByErrorMsg("重复提交,请稍后再试。!",request);
+//        }
+//
+//        // 更新请求时间戳
+//        requestTimestamps.put(requestId, System.currentTimeMillis());
+//
+//        try {
+//            if (!isIntegerGreaterThan100(amt)) {
+//                return ServerResponse.createByErrorMsg("请输入整数!",request);
+//            }
+//            synchronized (user.getId()){
+//                serverResponse = this.iUserWithdrawService.outMoney(amt, user.getWithPwd(), accsetType,bankId,request);
+//            }
+//        } catch (Exception e) {
+//            log.error("出金异常 e = {}", e);
+//            serverResponse = ServerResponse.createByErrorMsg("提现异常,请稍后再试",request);
+//        }
+//        return serverResponse;
     }
 
     private boolean isDuplicateRequest(String requestId) {

--
Gitblit v1.9.3