|
|
@ -45,7 +45,7 @@ public class SysUserOnlineController extends BaseController {
|
|
|
|
for (String key : keys) {
|
|
|
|
for (String key : keys) {
|
|
|
|
String token = key.replace(CacheConstants.LOGIN_TOKEN_KEY, "");
|
|
|
|
String token = key.replace(CacheConstants.LOGIN_TOKEN_KEY, "");
|
|
|
|
// 如果已经过期则踢下线
|
|
|
|
// 如果已经过期则踢下线
|
|
|
|
if (StpUtil.stpLogic.getTokenActivityTimeoutByToken(token) < 0) {
|
|
|
|
if (StpUtil.stpLogic.getTokenActivityTimeoutByToken(token) < -1) {
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
userOnlineList.add(RedisUtils.getCacheObject(CacheConstants.ONLINE_TOKEN_KEY + token));
|
|
|
|
userOnlineList.add(RedisUtils.getCacheObject(CacheConstants.ONLINE_TOKEN_KEY + token));
|
|
|
|