👽 更新weibo授权后的token参数
This commit is contained in:
@@ -8,6 +8,7 @@ import me.zhyd.oauth.exception.AuthException;
|
|||||||
import me.zhyd.oauth.model.AuthSource;
|
import me.zhyd.oauth.model.AuthSource;
|
||||||
import me.zhyd.oauth.model.AuthUser;
|
import me.zhyd.oauth.model.AuthUser;
|
||||||
import me.zhyd.oauth.model.AuthUserGender;
|
import me.zhyd.oauth.model.AuthUserGender;
|
||||||
|
import me.zhyd.oauth.utils.GlobalAuthUtil;
|
||||||
import me.zhyd.oauth.utils.IpUtils;
|
import me.zhyd.oauth.utils.IpUtils;
|
||||||
import me.zhyd.oauth.utils.StringUtils;
|
import me.zhyd.oauth.utils.StringUtils;
|
||||||
import me.zhyd.oauth.utils.UrlBuilder;
|
import me.zhyd.oauth.utils.UrlBuilder;
|
||||||
@@ -58,7 +59,7 @@ public class AuthWeiboRequest extends BaseAuthRequest {
|
|||||||
.location(object.getString("location"))
|
.location(object.getString("location"))
|
||||||
.remark(object.getString("description"))
|
.remark(object.getString("description"))
|
||||||
.gender(AuthUserGender.getRealGender(object.getString("gender")))
|
.gender(AuthUserGender.getRealGender(object.getString("gender")))
|
||||||
.accessToken(accessToken)
|
.accessToken(GlobalAuthUtil.parseStringToMap(accessToken).get("access_token="))
|
||||||
.source(AuthSource.WEIBO)
|
.source(AuthSource.WEIBO)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user