Merge remote-tracking branch 'origin/master'

This commit is contained in:
温文静WWW 2025-08-04 16:45:58 +08:00
commit a8191b93f6

View File

@ -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(){