|
@@ -37,9 +37,6 @@ public class CountUtil {
|
|
|
Integer timeout = 2;
|
|
|
String errKey = key + "-" + tag;
|
|
|
String errValue = stringRedisTemplate.opsForValue().get(errKey);
|
|
|
- System.out.println("errKey: " + errKey);
|
|
|
- System.out.println("errValue: " + errValue);
|
|
|
- System.out.println("--------------------------");
|
|
|
if (errValue != null && Integer.valueOf(errValue) >= 5) {
|
|
|
throw new CustomException("错误次数过多,为账号安全,请等待" + timeout + "分钟后重新尝试", ResultEnum.LOCK_CREDENTIALS.getCode());
|
|
|
}
|