mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-19 03:52:50 +08:00
修复"禁止登录"后 已在线的用户 还可以请求bug
This commit is contained in:
parent
e007e9dafc
commit
0b38771d30
@ -34,4 +34,9 @@
|
|||||||
"responseBodyDefinition" : null
|
"responseBodyDefinition" : null
|
||||||
}
|
}
|
||||||
================================
|
================================
|
||||||
|
import cn.dev33.satoken.stp.StpUtil
|
||||||
|
|
||||||
|
if(isLogin == '1'){
|
||||||
|
StpUtil.logout(id);
|
||||||
|
}
|
||||||
return db.table("sys_user").column("isLogin", isLogin).where().eq("id",id).update()
|
return db.table("sys_user").column("isLogin", isLogin).where().eq("id",id).update()
|
Loading…
Reference in New Issue
Block a user