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