wlzboy
2026-01-24 b2bd9fb71ee17d0ec73429f03dc87c87a0a38325
ruoyi-common/src/main/java/com/ruoyi/common/utils/SecurityUtils.java
@@ -69,6 +69,21 @@
    }
    /**
     * 获取用户昵称
     **/
    public static String getNickName()
    {
        try
        {
            return getLoginUser().getUser().getNickName();
        }
        catch (Exception e)
        {
            throw new ServiceException("获取用户昵称异常", HttpStatus.UNAUTHORIZED);
        }
    }
    /**
     * 获取用户
     **/
    public static LoginUser getLoginUser()