微调
This commit is contained in:
@@ -44,7 +44,7 @@ public interface SecurityConstants {
|
||||
*/
|
||||
String USER_ID = "userId";
|
||||
String USER_TYPE = "userType";
|
||||
String USER_NAME_KEY = "user_name";
|
||||
String USER_NAME_KEY = "name";
|
||||
String USER_HEAD_KEY = "headSculpture";
|
||||
String USER_NICKNAME_KEY = "nickname";
|
||||
String CLIENT_ID_KEY = "client_id";
|
||||
|
||||
@@ -67,7 +67,7 @@ public class RequestUtil {
|
||||
String username = null;
|
||||
if (StrUtil.isNotBlank(userJson)) {
|
||||
JSONObject obj = JSONUtil.parseObj(userJson);
|
||||
username = obj.getStr("username");
|
||||
username = obj.getStr(SecurityConstants.USER_NAME_KEY);
|
||||
}
|
||||
return username;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user