ip限制暂时放开
This commit is contained in:
@@ -124,15 +124,15 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redisService.isRecordUserOnLineTime(userId)) {
|
// if (redisService.isRecordUserOnLineTime(userId)) {
|
||||||
ThreadUtil.execAsync(() -> {
|
// ThreadUtil.execAsync(() -> {
|
||||||
// 记录用户最后一次调用接口的时间
|
// // 记录用户最后一次调用接口的时间
|
||||||
UserEntity userEntity = new UserEntity();
|
// UserEntity userEntity = new UserEntity();
|
||||||
userEntity.setUserId(userId);
|
// userEntity.setUserId(userId);
|
||||||
userEntity.setOnLineTime(DateUtils.format(new Date()));
|
// userEntity.setOnLineTime(DateUtils.format(new Date()));
|
||||||
userService.updateById(userEntity);
|
// userService.updateById(userEntity);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user