mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-30 20:57:47 +08:00
#966 修复开放平台移动端快速授权链接中的错误字符
This commit is contained in:
parent
bfe89b9ddd
commit
c40c6c5797
@ -31,7 +31,7 @@ public interface WxOpenComponentService {
|
||||
/**
|
||||
* 手机端打开授权链接
|
||||
*/
|
||||
String COMPONENT_MOBILE_LOGIN_PAGE_URL = "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&no_scan=1&auth_type=3&component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=xxx&biz_appid=xxx$#wechat_redirect";
|
||||
String COMPONENT_MOBILE_LOGIN_PAGE_URL = "https://mp.weixin.qq.com/safe/bindcomponent?action=bindcomponent&no_scan=1&auth_type=3&component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=xxx&biz_appid=xxx#wechat_redirect";
|
||||
String CONNECT_OAUTH2_AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=%s&state=%s&component_appid=%s#wechat_redirect";
|
||||
|
||||
/**
|
||||
|
@ -196,14 +196,17 @@ public class WxOpenComponentServiceImpl implements WxOpenComponentService {
|
||||
return getPreAuthUrl(redirectURI, null, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
|
||||
return createPreAuthUrl(redirectURI, authType, bizAppid, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMobilePreAuthUrl(String redirectURI) throws WxErrorException {
|
||||
return getMobilePreAuthUrl(redirectURI, null, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMobilePreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
|
||||
return createPreAuthUrl(redirectURI, authType, bizAppid, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user