mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	reset 回滚 satoken 使用 loginType 分离登录用户 存在限制
This commit is contained in:
		@@ -63,8 +63,7 @@ public class LoginHelper {
 | 
			
		||||
//        } else if (userType == UserType.APP_USER) {
 | 
			
		||||
//            model.setTimeout(86400).setActiveTimeout(1800);
 | 
			
		||||
//        }
 | 
			
		||||
        StpUtil.stpLogic.setLoginType(loginUser.getUserType())
 | 
			
		||||
            .login(loginUser.getLoginId(), model.setExtra(USER_KEY, loginUser.getUserId()));
 | 
			
		||||
        StpUtil.login(loginUser.getLoginId(), model.setExtra(USER_KEY, loginUser.getUserId()));
 | 
			
		||||
        StpUtil.getTokenSession().set(LOGIN_USER_KEY, loginUser);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@@ -131,7 +130,7 @@ public class LoginHelper {
 | 
			
		||||
     * 获取用户类型
 | 
			
		||||
     */
 | 
			
		||||
    public static UserType getUserType() {
 | 
			
		||||
        String loginType = StpUtil.stpLogic.getLoginType();
 | 
			
		||||
        String loginType = StpUtil.getLoginIdAsString();
 | 
			
		||||
        return UserType.getUserType(loginType);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user