update satoken 1.31.0 => 1.32.0

2.X
疯狂的狮子li 2 years ago
parent cfd01f33b4
commit 06ac9d5173

@ -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时新登录挤掉旧登录)

@ -36,7 +36,7 @@
<redisson.version>3.17.7</redisson.version>
<lock4j.version>2.2.2</lock4j.version>
<xxl-job.version>2.3.1</xxl-job.version>
<satoken.version>1.31.0</satoken.version>
<satoken.version>1.32.0</satoken.version>
<lombok.version>1.18.24</lombok.version>
<logstash.version>7.1.1</logstash.version>
<easy-es.version>1.0.2</easy-es.version>

@ -40,7 +40,7 @@ public class SysUserOnlineController extends BaseController {
@GetMapping("/list")
public TableDataInfo<SysUserOnline> list(String ipaddr, String userName) {
// 获取所有未过期的 token
List<String> keys = StpUtil.searchTokenValue("", -1, 0, false);
List<String> keys = StpUtil.searchTokenValue("", 0, -1, false);
List<SysUserOnline> userOnlineList = new ArrayList<SysUserOnline>();
for (String key : keys) {
String token = key.replace(CacheConstants.LOGIN_TOKEN_KEY, "");

Loading…
Cancel
Save