mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-20 18:15:56 +08:00
doc: LoginHelper.loginByDevice 注释:需要配置sa-token.dynamic-active-timeout=true,才能让setActiveTimeout有效
Signed-off-by: dhb52 <dhb52@126.com>
This commit is contained in:
parent
2de97fe45c
commit
d97ca4df5d
@ -57,6 +57,7 @@ public class LoginHelper {
|
|||||||
}
|
}
|
||||||
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
// 自定义分配 不同用户体系 不同 token 授权时间 不设置默认走全局 yml 配置
|
||||||
// 例如: 后台用户30分钟过期 app用户1天过期
|
// 例如: 后台用户30分钟过期 app用户1天过期
|
||||||
|
// 注意: 需要配置sa-token.dynamic-active-timeout=true,才能让setActiveTimeout有效
|
||||||
// UserType userType = UserType.getUserType(loginUser.getUserType());
|
// UserType userType = UserType.getUserType(loginUser.getUserType());
|
||||||
// if (userType == UserType.SYS_USER) {
|
// if (userType == UserType.SYS_USER) {
|
||||||
// model.setTimeout(86400).setActiveTimeout(1800);
|
// model.setTimeout(86400).setActiveTimeout(1800);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user