From e721668eb0650c5e7ee495f6e58eeabebc047733 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 20 Sep 2023 10:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/system/controller/LoginController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/LoginController.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/LoginController.java index 074b81fe..ccc0576e 100644 --- a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/LoginController.java +++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/LoginController.java @@ -286,6 +286,7 @@ public class LoginController { String orgCode= user.getOrgCode(); //获取登录租户 Integer tenantId = user.getLoginTenantId(); + //设置用户登录部门和登录租户 this.sysUserService.updateUserDepart(username, orgCode,tenantId); SysUser sysUser = sysUserService.getUserByName(username); JSONObject obj = new JSONObject(); @@ -728,7 +729,7 @@ public class LoginController { val = Integer.parseInt(failTime.toString()); } // 10分钟 - redisUtil.set(key, ++val, 600); + redisUtil.set(key, ++val, 10); } } \ No newline at end of file