提交 bb975f8e 编写于 作者: S shahuang

移除用户额外信息

上级 de273d04
......@@ -67,17 +67,4 @@ public class AuthUser {
*/
private AuthToken token;
/**
* 用户在平台上的用户类型(类似是C类用户或者B类用户,或者各个平台自己的细分分类)
*/
private Integer userType;
/**
* 在平台上是否为VIP
*/
private Boolean isVip;
/**
* 所属平台组织的唯一识别id
*/
private String organizationUuid;
}
......@@ -94,21 +94,11 @@ public class AuthKujialeRequest extends AuthDefaultRequest {
}
JSONObject resultObject = object.getJSONObject("d");
JSONObject extraInfoObject = object.getJSONObject("extraInfo");
boolean isVip = false;
String organizationUuid = null;
if (extraInfoObject != null) {
isVip = extraInfoObject.getBoolean("isVip");
organizationUuid = extraInfoObject.getString("partnerId");
}
return AuthUser.builder()
.username(resultObject.getString("userName"))
.nickname(resultObject.getString("userName"))
.avatar(resultObject.getString("avatar"))
.uuid(resultObject.getString("openId"))
.isVip(isVip)
.organizationUuid(organizationUuid)
.token(authToken)
.source(source)
.build();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册