1
0
mirror of synced 2025-12-28 18:57:55 +08:00

🍻 qq登录时根据openid和unionid选择合适的值作为uuid

This commit is contained in:
yadong.zhang
2019-06-19 10:06:15 +08:00
parent 458de3840d
commit 67579bfb07

View File

@@ -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");