From 426bcddd4779dd025ce580b3804ab6b50a3eb62d Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sun, 25 Jul 2021 23:09:07 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=99=BB=E5=BD=95=E6=9E=84=E5=BB=BA=E7=9A=84?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E9=93=BE=E6=8E=A5=E5=9C=B0=E5=9D=80=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java index 19739e9e4..ce7e3af84 100644 --- a/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java +++ b/weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java @@ -14,6 +14,7 @@ import org.apache.commons.lang3.StringUtils; import java.io.IOException; import static me.chanjar.weixin.mp.enums.WxMpApiUrl.OAuth2.*; +import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.QRCONNECT_URL; /** * oauth2接口实现. @@ -28,7 +29,7 @@ public class WxOpenOAuth2ServiceImpl extends WxOpenServiceImpl implements WxOAut @Override public String buildAuthorizationUrl(String redirectUri, String scope, String state) { - return String.format(CONNECT_OAUTH2_AUTHORIZE_URL.getUrl(null), + return String.format(QRCONNECT_URL.getUrl(null), this.appId, URIUtil.encodeURIComponent(redirectUri), scope, StringUtils.trimToEmpty(state)); }