💩 补全抖音平台缺失字段补全。Github#188
This commit is contained in:
@@ -44,6 +44,7 @@ public class AuthDouyinRequest extends AuthDefaultRequest {
|
||||
JSONObject userInfoObject = JSONObject.parseObject(response);
|
||||
this.checkResponse(userInfoObject);
|
||||
JSONObject object = userInfoObject.getJSONObject("data");
|
||||
authToken.setUnionId(object.getString("union_id"));
|
||||
return AuthUser.builder()
|
||||
.rawUserInfo(object)
|
||||
.uuid(object.getString("union_id"))
|
||||
@@ -96,6 +97,7 @@ public class AuthDouyinRequest extends AuthDefaultRequest {
|
||||
.openId(dataObj.getString("open_id"))
|
||||
.expireIn(dataObj.getIntValue("expires_in"))
|
||||
.refreshToken(dataObj.getString("refresh_token"))
|
||||
.refreshTokenExpireIn(dataObj.getIntValue("refresh_expires_in"))
|
||||
.scope(dataObj.getString("scope"))
|
||||
.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user