mirror of
https://gitee.com/dromara/sa-token.git
synced 2024-12-02 11:57:40 +08:00
update sa-token-doc/doc/use/mock-person.md.
fix: 文档示例错误
This commit is contained in:
parent
47e879ad5e
commit
2052a11e9e
@ -24,10 +24,10 @@ StpUtil.getSessionByLoginId(10001);
|
||||
StpUtil.getSessionByLoginId(10001, false);
|
||||
|
||||
// 获取账号10001是否含有指定角色标识
|
||||
StpUtil.hasRole("super-admin");
|
||||
StpUtil.hasRole(10001, "super-admin");
|
||||
|
||||
// 获取账号10001是否含有指定权限码
|
||||
StpUtil.hasPermission("user:add");
|
||||
StpUtil.hasPermission(10001, "user:add");
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user