|
@@ -108,6 +108,7 @@ public class UserLoginErrorServiceImpl extends ServiceImpl<UserLoginErrorMapper,
|
|
if(Validator.isNotEmpty(objectJson)&&objectJson.containsKey("other")){
|
|
if(Validator.isNotEmpty(objectJson)&&objectJson.containsKey("other")){
|
|
JSONObject jsonObject = objectJson.getJSONObject("other");
|
|
JSONObject jsonObject = objectJson.getJSONObject("other");
|
|
Integer maxCount = jsonObject.getInteger("loginLimit");
|
|
Integer maxCount = jsonObject.getInteger("loginLimit");
|
|
|
|
+ log.error("登录错误"+count+"EE"+maxCount);
|
|
if(maxCount>0&&count>=maxCount){
|
|
if(maxCount>0&&count>=maxCount){
|
|
throw new CustomException("今天你的错误次数已超过"+maxCount+"次,请明天再登录");
|
|
throw new CustomException("今天你的错误次数已超过"+maxCount+"次,请明天再登录");
|
|
}
|
|
}
|