Commit 65c2b000 authored by 技术部-任文超's avatar 技术部-任文超

开启全天候拦截(取消危险期标记,全天都是危险期)

parent 5b672d04
......@@ -39,10 +39,10 @@ public interface Constants {
String REDIS_PASSWORD_ERROR_COUNT = "password_error_count:";
String REDIS_PASSWORD_ERROR_COUNT_FOR_IPV4 = "password_error_count_4_ipv4:";
String IPV4_LOCK = "lock_ipv4:";
final Long IPV4_LOCK_MINUTES = 6 * 60L;//3L;//6 * 60L;
final Long IPV4_LOCK_MINUTES = 6 * 60L;
final Long IPV4_COUNT_MINUTES = 1L;
final Long IPV4_LOCK_ON_COUNTS = 60L;//5L;//60L;
final int DANGEROUS_TIME_START = 23;//20;//22;
final Long IPV4_LOCK_ON_COUNTS = 60L;
final int DANGEROUS_TIME_START = 22;
final int DANGEROUS_TIME_END = 6;
/**
* redis中token的key值前缀
......
......@@ -54,9 +54,9 @@ public class PasswordErrorFiniteValidateAdvisor {
*/
@Around("passwordErrorFiniteValidate()")
private Object doFiniteValidate(ProceedingJoinPoint pjp) throws Throwable {
if(!ValidationUtil.isAtDangerousTime()){
/*if(!ValidationUtil.isAtDangerousTime()){
return pjp.proceed();
}
}*/
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
// 客户端IP
String clientIp = getIp(request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment