mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	@@ -83,7 +83,7 @@ public class SysUserOnlineController extends BaseController {
 | 
			
		||||
    public R<Void> forceLogout(@PathVariable String tokenId) {
 | 
			
		||||
        try {
 | 
			
		||||
            StpUtil.kickoutByTokenValue(tokenId);
 | 
			
		||||
        } catch (NotLoginException e) {
 | 
			
		||||
        } catch (NotLoginException ignored) {
 | 
			
		||||
        }
 | 
			
		||||
        return R.ok();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -128,7 +128,7 @@ public class SysLoginService {
 | 
			
		||||
            LoginUser loginUser = LoginHelper.getLoginUser();
 | 
			
		||||
            StpUtil.logout();
 | 
			
		||||
            asyncService.recordLogininfor(loginUser.getUsername(), Constants.LOGOUT, MessageUtils.message("user.logout.success"), ServletUtils.getRequest());
 | 
			
		||||
        } catch (NotLoginException e) {
 | 
			
		||||
        } catch (NotLoginException ignored) {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user