fix 修复 临时解决 token与token-session 过期时间不一致问题(等satoken处理)

Signed-off-by: 疯狂的狮子Li <15040126243@163.com>
2.X
疯狂的狮子Li 10 months ago committed by Gitee
parent cc57fb9571
commit d7e52b3de7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -57,7 +57,9 @@ public class LoginHelper {
model.setExtra(TENANT_KEY, loginUser.getTenantId()) model.setExtra(TENANT_KEY, loginUser.getTenantId())
.setExtra(USER_KEY, loginUser.getUserId()) .setExtra(USER_KEY, loginUser.getUserId())
.setExtra(DEPT_KEY, loginUser.getDeptId())); .setExtra(DEPT_KEY, loginUser.getDeptId()));
StpUtil.getTokenSession().set(LOGIN_USER_KEY, loginUser); SaSession tokenSession = StpUtil.getTokenSession();
tokenSession.updateTimeout(model.getTimeout());
tokenSession.set(LOGIN_USER_KEY, loginUser);
} }
/** /**

Loading…
Cancel
Save