wlzboy
2026-03-06 55cb4e492f782126e941b80c53c496159d8eb3c0
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()