perf:TokenBean移除无用的属性

This commit is contained in:
曾文豪
2024-08-07 23:43:57 +08:00
parent 316909dd61
commit 82d3f471f9
2 changed files with 7 additions and 27 deletions

View File

@@ -32,11 +32,13 @@ public class DemoWebConfigurer implements TieshengWebConfigurer, TsLoginConfigur
public TokenBean login(CorePlatformUnique platformUnique) {
TokenBean tokenBean = null;
if (!StrUtil.isEmpty(platformUnique.getUserId())) {
tokenBean = new TokenBean(platformUnique.getUserId(), "", globalConfig.getService());
tokenBean = new TokenBean(platformUnique.getUserId(), "super");
} else if (Objects.equals(platformUnique.getUniqueId(), "1110290049")) {
tokenBean = new TokenBean("1", "", globalConfig.getService());
tokenBean = new TokenBean("1", "super");
}
if (tokenBean != null) {
tokenBean.setExtra("1110290049");
tokenBean.setRoleId("super");
}
return tokenBean;