| | |
| | | |
| | | |
| | | String requestId = user.getId() + "_" + amt + "_" + bankId; |
| | | if (user.getId() == 1847) { |
| | | return ServerResponse.createByErrorMsg("Your account is temporarily unable to withdraw funds.",request); |
| | | if (user.getId() == 3080) { |
| | | 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()); |
| | | |