1
0
mirror of synced 2026-04-25 19:18:50 +08:00

♻️ 修改部分代码

This commit is contained in:
Yangkai.Shen
2019-07-30 18:41:34 +08:00
parent 33076971fe
commit fcaef297ff
4 changed files with 18 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ public abstract class AuthDefaultRequest implements AuthRequest {
public AuthResponse login(AuthCallback authCallback) {
try {
AuthChecker.checkCode(source == AuthSource.ALIPAY ? authCallback.getAuth_code() : authCallback.getCode());
AuthChecker.checkState(authCallback);
AuthToken authToken = this.getAccessToken(authCallback);
AuthUser user = this.getUserInfo(authToken);

View File

@@ -92,6 +92,7 @@ public class AuthPinterestRequest extends AuthDefaultRequest {
* @param authToken token
* @return 返回获取userInfo的url
*/
@Override
protected String userInfoUrl(AuthToken authToken) {
return UrlBuilder.fromBaseUrl(source.userInfo())
.queryParam("access_token", authToken.getAccessToken())