!553 优化获取用户账户

Merge pull request !553 from AprilWind/dev
This commit is contained in:
疯狂的狮子Li 2024-06-27 06:49:59 +00:00 committed by Gitee
commit 5c7e8c5381
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -87,6 +87,13 @@ public class LoginHelper {
return Convert.toLong(getExtra(USER_KEY));
}
/**
* 获取用户账户
*/
public static String getUsername() {
return Convert.toStr(getExtra(USER_NAME_KEY));
}
/**
* 获取租户ID
*/
@ -129,13 +136,6 @@ public class LoginHelper {
}
}
/**
* 获取用户账户
*/
public static String getUsername() {
return getLoginUser().getUsername();
}
/**
* 获取用户类型
*/