From e0494fc9a0c6061ec01acec433eb61b685e8984d Mon Sep 17 00:00:00 2001 From: sugus <1020570875@qq.com> Date: Mon, 4 Aug 2025 11:36:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/aircraft/utils/SecurityUtils.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aircraft-common/src/main/java/com/aircraft/utils/SecurityUtils.java b/aircraft-common/src/main/java/com/aircraft/utils/SecurityUtils.java index 0591349..7556e41 100644 --- a/aircraft-common/src/main/java/com/aircraft/utils/SecurityUtils.java +++ b/aircraft-common/src/main/java/com/aircraft/utils/SecurityUtils.java @@ -164,11 +164,7 @@ public class SecurityUtils { * @return 系统用户类型 */ public static UserTypeEnum getCurrentUserType(){ - UserDetails userDetails = getCurrentUser(); - // 将 Java 对象转换为 JSONObject 对象 - JSONObject jsonObject = (JSONObject) JSON.toJSON(userDetails); - String userTypeStr = jsonObject.getString("userType"); - return UserTypeEnum.valueOf(userTypeStr); + return getCurrentUserTypeVo(); } public static String getCurrentEmployee(){