!4 优化微博登录

Merge pull request !4 from skqing/master
This commit is contained in:
yadong.zhang 2019-06-22 07:43:45 +08:00 committed by Gitee
commit 9902e7eb0d
2 changed files with 3 additions and 2 deletions

View File

@ -327,7 +327,7 @@ public enum AuthSource {
@Override
public String refresh() {
return "https://open.douyin.com/oauth/refresh_token";
return "https://open.douyin.com/oauth/refresh_token/";
}
},
/**

View File

@ -40,7 +40,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();
}