优化微博登录:
1.remind_in:该参数即将废弃,开发者请使用expires_in 2.uid作为openid,否则openid为空,理论上uid也是可以作为openid的
This commit is contained in:
@@ -472,7 +472,7 @@ public enum ApiUrl {
|
||||
|
||||
@Override
|
||||
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()
|
||||
.accessToken(accessTokenObject.getString("access_token"))
|
||||
.uid(accessTokenObject.getString("uid"))
|
||||
.expireIn(accessTokenObject.getIntValue("remind_in"))
|
||||
.openId(accessTokenObject.getString("uid"))
|
||||
.expireIn(accessTokenObject.getIntValue("expires_in"))
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user