mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-31 17:12:49 +08:00
在线用户
This commit is contained in:
parent
dc719ef6f7
commit
f9b24bded4
@ -5,7 +5,7 @@
|
||||
"groupId" : "d95a58e77d314370862ffc4cdfdb8283",
|
||||
"name" : "列表",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1652170512725,
|
||||
"updateTime" : 1680332611352,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@ -123,6 +123,7 @@ var tokens = StpUtil.searchTokenValue("", -1, 0).map(it => it.replace('token:log
|
||||
|
||||
return db.page("""
|
||||
select
|
||||
su.id,
|
||||
su.username,
|
||||
so.name office_name,
|
||||
sll.address,
|
||||
|
@ -5,7 +5,7 @@
|
||||
"groupId" : "d95a58e77d314370862ffc4cdfdb8283",
|
||||
"name" : "踢人",
|
||||
"createTime" : null,
|
||||
"updateTime" : 1652170543213,
|
||||
"updateTime" : 1680332529466,
|
||||
"lock" : null,
|
||||
"createBy" : null,
|
||||
"updateBy" : null,
|
||||
@ -35,4 +35,6 @@
|
||||
}
|
||||
================================
|
||||
import cn.dev33.satoken.stp.StpUtil
|
||||
return StpUtil.logoutByTokenValue(token);
|
||||
// 先踢下线
|
||||
StpUtil.logoutByTokenValue(StpUtil.getTokenValueByLoginId(id))
|
||||
return StpUtil.disable(id, time.asLong());
|
Loading…
Reference in New Issue
Block a user