修改获取昵称
This commit is contained in:
@@ -66,6 +66,21 @@ public class SecurityUtils
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
**/
|
||||
public static String getNickName()
|
||||
{
|
||||
try
|
||||
{
|
||||
return getLoginUser().getUser().getNickName();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ServiceException("获取用户昵称异常", HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user