Pre Merge pull request !553 from AprilWind/dev

This commit is contained in:
AprilWind 2024-06-27 06:47:08 +00:00 committed by Gitee
commit f866a819e7
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)); return Convert.toLong(getExtra(USER_KEY));
} }
/**
* 获取用户账户
*/
public static String getUsername() {
return Convert.toStr(getExtra(USER_NAME_KEY));
}
/** /**
* 获取租户ID * 获取租户ID
*/ */
@ -129,13 +136,6 @@ public class LoginHelper {
} }
} }
/**
* 获取用户账户
*/
public static String getUsername() {
return getLoginUser().getUsername();
}
/** /**
* 获取用户类型 * 获取用户类型
*/ */