8000 :bug: 修复三方应用登录构建的授权链接地址问题 · RefinedMe/WxJava@426bcdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 426bcdd

Browse files
committed
🐛 修复三方应用登录构建的授权链接地址问题
1 parent e151818 commit 426bcdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenOAuth2ServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import java.io.IOException;
1515

1616
import static me.chanjar.weixin.mp.enums.WxMpApiUrl.OAuth2.*;
17+
import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.QRCONNECT_URL;
1718

1819
/**
1920
* oauth2接口实现.
@@ -28,7 +29,7 @@ public class WxOpenOAuth2ServiceImpl extends WxOpenServiceImpl implements WxOAut
2829

2930
@Override
3031
public String buildAuthorizationUrl(String redirectUri, String scope, String state) {
31-
return String.format(CONNECT_OAUTH2_AUTHORIZE_URL.getUrl(null),
32+
return String.format(QRCONNECT_URL.getUrl(null),
3233
this.appId, URIUtil.encodeURIComponent(redirectUri), scope, StringUtils.trimToEmpty(state));
3334
}
3435

0 commit comments

Comments
 (0)
0