ip限制暂时放开

This commit is contained in:
GYJ
2025-03-12 11:16:19 +08:00
parent e65c67b55a
commit 1e3e9ad7c0

View File

@@ -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;
}