👽 更新weibo授权后的token参数

This commit is contained in:
yadong.zhang 2019-02-22 18:15:54 +08:00
parent 351287fee0
commit 59fba30c0d

View File

@ -8,6 +8,7 @@ import me.zhyd.oauth.exception.AuthException;
import me.zhyd.oauth.model.AuthSource;
import me.zhyd.oauth.model.AuthUser;
import me.zhyd.oauth.model.AuthUserGender;
import me.zhyd.oauth.utils.GlobalAuthUtil;
import me.zhyd.oauth.utils.IpUtils;
import me.zhyd.oauth.utils.StringUtils;
import me.zhyd.oauth.utils.UrlBuilder;
@ -58,7 +59,7 @@ public class AuthWeiboRequest extends BaseAuthRequest {
.location(object.getString("location"))
.remark(object.getString("description"))
.gender(AuthUserGender.getRealGender(object.getString("gender")))
.accessToken(accessToken)
.accessToken(GlobalAuthUtil.parseStringToMap(accessToken).get("access_token="))
.source(AuthSource.WEIBO)
.build();
}