修改获取昵称

This commit is contained in:
2025-08-19 12:45:02 +08:00
parent c11faeeace
commit 0122acc5b1
12 changed files with 37 additions and 105 deletions

View File

@@ -66,6 +66,21 @@ public class SecurityUtils
}
}
/**
* 用户昵称
**/
public static String getNickName()
{
try
{
return getLoginUser().getUser().getNickName();
}
catch (Exception e)
{
throw new ServiceException("获取用户昵称异常", HttpStatus.UNAUTHORIZED);
}
}
/**
* 获取用户
**/