提交 9902e7eb 编写于 作者: 智布道's avatar 智布道 👁 提交者: Gitee

!4 优化微博登录

Merge pull request !4 from skqing/master
...@@ -327,7 +327,7 @@ public enum AuthSource { ...@@ -327,7 +327,7 @@ public enum AuthSource {
@Override @Override
public String refresh() { public String refresh() {
return "https://open.douyin.com/oauth/refresh_token"; return "https://open.douyin.com/oauth/refresh_token/";
} }
}, },
/** /**
......
...@@ -40,7 +40,8 @@ public class AuthWeiboRequest extends BaseAuthRequest { ...@@ -40,7 +40,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();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册