mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2026-01-07 19:31:48 +08:00
🍻 qq登录时根据openid和unionid选择合适的值作为uuid
This commit is contained in:
parent
458de3840d
commit
67579bfb07
@ -88,7 +88,7 @@ public class AuthQqRequest extends BaseAuthRequest {
|
||||
}
|
||||
authToken.setOpenId(object.getString("openid"));
|
||||
authToken.setUnionId(object.getString("unionid"));
|
||||
return authToken.getOpenId();
|
||||
return StringUtils.isEmpty(authToken.getUnionId()) ? authToken.getOpenId() : authToken.getUnionId();
|
||||
}
|
||||
|
||||
throw new AuthException("request error");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user