fix: 用户id

V0.5.x
jay 2023-06-14 14:41:53 +08:00
parent 747baf5adf
commit b263c34ef8
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import java.util.List;
public class AuthUtil { public class AuthUtil {
public static String getUserId() { public static String getUserId() {
return StpUtil.getLoginId().toString(); return String.valueOf(LoginHelper.getUserId());
} }
public static List<String> getUserRoles() { public static List<String> getUserRoles() {
@ -27,7 +27,7 @@ public class AuthUtil {
} }
public static boolean isAdmin() { public static boolean isAdmin() {
return AuthUtil.getUserRoles().contains(Constants.ROLE_ADMIN); return LoginHelper.isSuperAdmin();
} }
public static boolean isClientUser() { public static boolean isClientUser() {