mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 删除异常用户token
This commit is contained in:
@ -49,6 +49,7 @@ public class SysUserOnlineController extends BaseController {
|
||||
// 如果已经过期则踢下线
|
||||
if (StpUtil.stpLogic.getTokenActivityTimeoutByToken(key) < 0) {
|
||||
StpUtil.kickoutByTokenValue(key);
|
||||
continue;
|
||||
}
|
||||
String onlineKey = key.replace(Constants.LOGIN_TOKEN_KEY, Constants.ONLINE_TOKEN_KEY);
|
||||
userOnlineDTOList.add(RedisUtils.getCacheObject(onlineKey));
|
||||
|
Reference in New Issue
Block a user