reset 回滚 satoken 使用 loginType 分离登录用户 存在限制

feature/model
疯狂的狮子Li 1 year ago
parent 33c2d8e833
commit 08ba802e12

@ -68,8 +68,7 @@ public class LoginHelper {
// } else if (userType == UserType.APP_USER) {
// model.setTimeout(86400).setActiveTimeout(1800);
// }
StpUtil.stpLogic.setLoginType(loginUser.getUserType())
.login(loginUser.getLoginId(),
StpUtil.login(loginUser.getLoginId(),
model.setExtra(TENANT_KEY, loginUser.getTenantId())
.setExtra(USER_KEY, loginUser.getUserId()));
StpUtil.getTokenSession().set(LOGIN_USER_KEY, loginUser);
@ -155,7 +154,7 @@ public class LoginHelper {
*
*/
public static UserType getUserType() {
String loginType = StpUtil.stpLogic.getLoginType();
String loginType = StpUtil.getLoginIdAsString();
return UserType.getUserType(loginType);
}

Loading…
Cancel
Save