From 1e3e9ad7c0afe57b0fb4a986b1447aaaf9e5de52 Mon Sep 17 00:00:00 2001 From: GYJ <1157756119@qq.com> Date: Wed, 12 Mar 2025 11:16:19 +0800 Subject: [PATCH] =?UTF-8?q?ip=E9=99=90=E5=88=B6=E6=9A=82=E6=97=B6=E6=94=BE?= =?UTF-8?q?=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interceptor/AuthorizationInterceptor.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/sqx/modules/app/interceptor/AuthorizationInterceptor.java b/src/main/java/com/sqx/modules/app/interceptor/AuthorizationInterceptor.java index 2f93f784..62cdebb5 100644 --- a/src/main/java/com/sqx/modules/app/interceptor/AuthorizationInterceptor.java +++ b/src/main/java/com/sqx/modules/app/interceptor/AuthorizationInterceptor.java @@ -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; }