Skip to content

Commit

Permalink
移除用户额外信息
Browse files Browse the repository at this point in the history
  • Loading branch information
shahuang committed Sep 2, 2019
1 parent de273d0 commit bb975f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions src/main/java/me/zhyd/oauth/model/AuthUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,4 @@ public class AuthUser {
*/
private AuthToken token;

/**
* 用户在平台上的用户类型(类似是C类用户或者B类用户,或者各个平台自己的细分分类)
*/
private Integer userType;
/**
* 在平台上是否为VIP
*/
private Boolean isVip;

/**
* 所属平台组织的唯一识别id
*/
private String organizationUuid;
}
10 changes: 0 additions & 10 deletions src/main/java/me/zhyd/oauth/request/AuthKujialeRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,11 @@ public AuthUser getUserInfo(AuthToken authToken) {
}
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();
Expand Down

0 comments on commit bb975f8

Please sign in to comment.