Merge pull request #11 from xkcoding/feature-userid

 添加用户在Google中的唯一主键
This commit is contained in:
yadong.zhang 2019-05-24 09:44:51 +08:00 committed by GitHub
commit c8617b4d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,7 @@ public class AuthGoogleRequest extends BaseAuthRequest {
String userInfo = response.body();
JSONObject object = JSONObject.parseObject(userInfo);
return AuthUser.builder()
.uuid(object.getString("sub"))
.username(object.getString("name"))
.avatar(object.getString("picture"))
.nickname(object.getString("name"))