update 优化获取用户账户

2.X
AprilWind 2024-06-28 09:23:55 +08:00
parent 2131bd6d63
commit 2f13cb9692
1 changed files with 7 additions and 7 deletions

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
*/ */
@ -130,13 +137,6 @@ public class LoginHelper {
} }
/**
*
*/
public static String getUsername() {
return getLoginUser().getUsername();
}
/** /**
* *
*/ */