File tree 2 files changed +2
-5
lines changed
weixin-java-open/src/main/java/me/chanjar/weixin/open/api
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public interface WxOpenComponentService {
27
27
String API_GET_AUTHORIZER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info" ;
28
28
String API_GET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option" ;
29
29
String API_SET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option" ;
30
- String API_GET_AUTHORIZER_LIST = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_list?component_access_token=%s " ;
30
+ String API_GET_AUTHORIZER_LIST = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_list" ;
31
31
32
32
String COMPONENT_LOGIN_PAGE_URL = "https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=%s&pre_auth_code=%s&redirect_uri=%s&auth_type=xxx&biz_appid=xxx" ;
33
33
Original file line number Diff line number Diff line change @@ -304,16 +304,13 @@ public WxOpenAuthorizerInfoResult getAuthorizerInfo(String authorizerAppid) thro
304
304
305
305
@ Override
306
306
public WxOpenAuthorizerListResult getAuthorizerList (int begin , int len ) throws WxErrorException {
307
-
308
- String url = String .format (API_GET_AUTHORIZER_LIST , getComponentAccessToken (false ));
309
307
begin = begin < 0 ? 0 : begin ;
310
308
len = len == 0 ? 10 : len ;
311
-
312
309
JsonObject jsonObject = new JsonObject ();
313
310
jsonObject .addProperty ("component_appid" , getWxOpenConfigStorage ().getComponentAppId ());
314
311
jsonObject .addProperty ("offset" , begin );
315
312
jsonObject .addProperty ("count" , len );
316
- String responseContent = post (url , jsonObject .toString ());
313
+ String responseContent = post (API_GET_AUTHORIZER_LIST , jsonObject .toString ());
317
314
WxOpenAuthorizerListResult ret = WxOpenGsonBuilder .create ().fromJson (responseContent , WxOpenAuthorizerListResult .class );
318
315
if (ret != null && ret .getList () != null ) {
319
316
for (Map <String , String > data : ret .getList ()) {
You can’t perform that action at this time.
0 commit comments