From 27f2082a64612dc854781b50c385ec4a6d7b9ec7 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 12 Nov 2025 10:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/shiro/web/filter/online/OnlineSessionFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java index bbbe6d66..3f09f388 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/online/OnlineSessionFilter.java @@ -56,9 +56,10 @@ public class OnlineSessionFilter extends AccessControlFilter { onlineSession.setUserId(user.getUserId()); onlineSession.setLoginName(user.getLoginName()); - onlineSession.setAvatar(user.getAvatar()); + onlineSession.setAvatar(user.getAvatar()); onlineSession.setDeptName(user.getDept().getDeptName()); onlineSession.markAttributeChanged(); + onlineSessionDAO.update(onlineSession); } }