feat:增加权限校验
This commit is contained in:
@@ -26,7 +26,7 @@ public class DemoWebConfigurer implements TieshengWebConfigurer, TsLoginConfigur
|
||||
if (Objects.equals(tokenBean.getId(), "1")) {
|
||||
return info;
|
||||
}
|
||||
return null;
|
||||
return info;
|
||||
}
|
||||
|
||||
public TokenBean login(CorePlatformUnique platformUnique) {
|
||||
@@ -36,6 +36,7 @@ public class DemoWebConfigurer implements TieshengWebConfigurer, TsLoginConfigur
|
||||
} else if (Objects.equals(platformUnique.getUniqueId(), "1110290049")) {
|
||||
tokenBean = new TokenBean("1", "", globalConfig.getService());
|
||||
tokenBean.setExtra("1110290049");
|
||||
tokenBean.setRoleId("super");
|
||||
}
|
||||
|
||||
return tokenBean;
|
||||
|
||||
@@ -26,11 +26,12 @@ tiesheng:
|
||||
token:
|
||||
test-map:
|
||||
"1111":
|
||||
id: "1111"
|
||||
role-id: "student_bks"
|
||||
id: "1"
|
||||
role-id: "super"
|
||||
global:
|
||||
version: 2
|
||||
host: http://localhost:8100
|
||||
service: demo
|
||||
aliyun:
|
||||
access-key-id: LTAI5tJtbgBCnTY5eS4SmrTf
|
||||
access-key-secret: JIHqpRUFffCHhXaJEVvWN31WcexWqG
|
||||
|
||||
Reference in New Issue
Block a user