update sa-token-doc/doc/use/mock-person.md.

fix: 文档示例错误
This commit is contained in:
RockMan 2021-02-01 11:30:21 +08:00 committed by Gitee
parent 47e879ad5e
commit 2052a11e9e

View File

@ -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");
```