mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 01:18:36 +08:00
🐛 修复三方应用登录构建的授权链接地址问题
This commit is contained in:
@ -14,6 +14,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import static me.chanjar.weixin.mp.enums.WxMpApiUrl.OAuth2.*;
|
import static me.chanjar.weixin.mp.enums.WxMpApiUrl.OAuth2.*;
|
||||||
|
import static me.chanjar.weixin.mp.enums.WxMpApiUrl.Other.QRCONNECT_URL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* oauth2接口实现.
|
* oauth2接口实现.
|
||||||
@ -28,7 +29,7 @@ public class WxOpenOAuth2ServiceImpl extends WxOpenServiceImpl implements WxOAut
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String buildAuthorizationUrl(String redirectUri, String scope, String state) {
|
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));
|
this.appId, URIUtil.encodeURIComponent(redirectUri), scope, StringUtils.trimToEmpty(state));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user