mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	fix 修复 在线用户设置永不过期 被过滤问题
This commit is contained in:
		@@ -47,7 +47,7 @@ public class SysUserOnlineController extends BaseController {
 | 
			
		||||
        for (String key : keys) {
 | 
			
		||||
            String token = key.replace(CacheConstants.LOGIN_TOKEN_KEY, "");
 | 
			
		||||
            // 如果已经过期则跳过
 | 
			
		||||
            if (StpUtil.stpLogic.getTokenActivityTimeoutByToken(token) < 0) {
 | 
			
		||||
            if (StpUtil.stpLogic.getTokenActivityTimeoutByToken(token) < -1) {
 | 
			
		||||
                continue;
 | 
			
		||||
            }
 | 
			
		||||
            userOnlineDTOList.add(RedisUtils.getCacheObject(CacheConstants.ONLINE_TOKEN_KEY + token));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user