Skip to content

Commit c40c6c5

Browse files
committed
#966 修复开放平台移动端快速授权链接中的错误字符
1 parent bfe89b9 commit c40c6c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface WxOpenComponentService {
3131
/**
3232
* 手机端打开授权链接
3333
*/
34-
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";
34+
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";
3535
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";
3636

3737
/**

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

+3
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,17 @@ public String getPreAuthUrl(String redirectURI) throws WxErrorException {
196196
return getPreAuthUrl(redirectURI, null, null);
197197
}
198198

199+
@Override
199200
public String getPreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
200201
return createPreAuthUrl(redirectURI, authType, bizAppid, false);
201202
}
202203

204+
@Override
203205
public String getMobilePreAuthUrl(String redirectURI) throws WxErrorException {
204206
return getMobilePreAuthUrl(redirectURI, null, null);
205207
}
206208

209+
@Override
207210
public String getMobilePreAuthUrl(String redirectURI, String authType, String bizAppid) throws WxErrorException {
208211
return createPreAuthUrl(redirectURI, authType, bizAppid, true);
209212
}

0 commit comments

Comments
 (0)