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",
|
"groupId" : "d95a58e77d314370862ffc4cdfdb8283",
|
||||||
"name" : "列表",
|
"name" : "列表",
|
||||||
"createTime" : null,
|
"createTime" : null,
|
||||||
"updateTime" : 1652170512725,
|
"updateTime" : 1680332611352,
|
||||||
"lock" : null,
|
"lock" : null,
|
||||||
"createBy" : null,
|
"createBy" : null,
|
||||||
"updateBy" : null,
|
"updateBy" : null,
|
||||||
@ -123,6 +123,7 @@ var tokens = StpUtil.searchTokenValue("", -1, 0).map(it => it.replace('token:log
|
|||||||
|
|
||||||
return db.page("""
|
return db.page("""
|
||||||
select
|
select
|
||||||
|
su.id,
|
||||||
su.username,
|
su.username,
|
||||||
so.name office_name,
|
so.name office_name,
|
||||||
sll.address,
|
sll.address,
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"groupId" : "d95a58e77d314370862ffc4cdfdb8283",
|
"groupId" : "d95a58e77d314370862ffc4cdfdb8283",
|
||||||
"name" : "踢人",
|
"name" : "踢人",
|
||||||
"createTime" : null,
|
"createTime" : null,
|
||||||
"updateTime" : 1652170543213,
|
"updateTime" : 1680332529466,
|
||||||
"lock" : null,
|
"lock" : null,
|
||||||
"createBy" : null,
|
"createBy" : null,
|
||||||
"updateBy" : null,
|
"updateBy" : null,
|
||||||
@ -35,4 +35,6 @@
|
|||||||
}
|
}
|
||||||
================================
|
================================
|
||||||
import cn.dev33.satoken.stp.StpUtil
|
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