1
0
mirror of synced 2026-05-22 21:53:18 +00:00

优化微博登录:

1.remind_in:该参数即将废弃,开发者请使用expires_in
2.uid作为openid,否则openid为空,理论上uid也是可以作为openid的
This commit is contained in:
skqing
2019-06-21 11:29:20 +08:00
parent 7ace410351
commit c201a9ac90
2 changed files with 3 additions and 2 deletions
@@ -472,7 +472,7 @@ public enum ApiUrl {
@Override @Override
public String refresh() { public String refresh() {
return "https://open.douyin.com/oauth/refresh_token"; return "https://open.douyin.com/oauth/refresh_token/";
} }
}, },
/** /**
@@ -39,7 +39,8 @@ public class AuthWeiboRequest extends BaseAuthRequest {
return AuthToken.builder() return AuthToken.builder()
.accessToken(accessTokenObject.getString("access_token")) .accessToken(accessTokenObject.getString("access_token"))
.uid(accessTokenObject.getString("uid")) .uid(accessTokenObject.getString("uid"))
.expireIn(accessTokenObject.getIntValue("remind_in")) .openId(accessTokenObject.getString("uid"))
.expireIn(accessTokenObject.getIntValue("expires_in"))
.build(); .build();
} }