提交 67579bfb 编写于 作者: 智布道's avatar 智布道 👁

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

上级 458de384
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册