diff --git a/config/dev/application-common.yml b/config/dev/application-common.yml index 33eee163..6f307f2e 100644 --- a/config/dev/application-common.yml +++ b/config/dev/application-common.yml @@ -170,7 +170,7 @@ sa-token: # token临时有效期 (指定时间无操作就过期) 单位: 秒 activity-timeout: 1800 # 开启内网服务调用鉴权 - check-id-token: true + check-same-token: true # Id-Token的有效期 (单位: 秒) id-token-timeout: 600 # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) diff --git a/pom.xml b/pom.xml index c13aec74..1393b273 100644 --- a/pom.xml +++ b/pom.xml @@ -36,7 +36,7 @@ 3.17.7 2.2.2 2.3.1 - 1.31.0 + 1.32.0 1.18.24 7.1.1 1.0.2 diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysUserOnlineController.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysUserOnlineController.java index 78755fa6..00b47f0d 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysUserOnlineController.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/SysUserOnlineController.java @@ -40,7 +40,7 @@ public class SysUserOnlineController extends BaseController { @GetMapping("/list") public TableDataInfo list(String ipaddr, String userName) { // 获取所有未过期的 token - List keys = StpUtil.searchTokenValue("", -1, 0, false); + List keys = StpUtil.searchTokenValue("", 0, -1, false); List userOnlineList = new ArrayList(); for (String key : keys) { String token = key.replace(CacheConstants.LOGIN_TOKEN_KEY, "");