Skip to content

Commit d2b37eb

Browse files
committed
🎨 binarywang#3270【开放平台】同步官方获取授权方选项信息、设置授权方选项信息接口地址
GET_AUTHORIZER_OPTION_URL&SET_AUTHORIZER_OPTION_URL
1 parent 119f2a5 commit d2b37eb

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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

+6-5
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ public interface WxOpenComponentService {
5555
*/
5656
String API_GET_AUTHORIZER_INFO_URL = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info";
5757
/**
58-
* The constant API_GET_AUTHORIZER_OPTION_URL.
58+
* The constant GET_AUTHORIZER_OPTION_URL.
5959
*/
60-
String API_GET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_option";
60+
String GET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/get_authorizer_option";
6161
/**
62-
* The constant API_SET_AUTHORIZER_OPTION_URL.
62+
* The constant SET_AUTHORIZER_OPTION_URL.
6363
*/
64-
String API_SET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/api_set_authorizer_option";
64+
String SET_AUTHORIZER_OPTION_URL = "https://api.weixin.qq.com/cgi-bin/component/set_authorizer_option";
6565
/**
6666
* The constant API_GET_AUTHORIZER_LIST.
6767
*/
@@ -202,6 +202,7 @@ public interface WxOpenComponentService {
202202
String BATCH_SHARE_ENV = "https://api.weixin.qq.com/componenttcb/batchshareenv";
203203

204204
String COMPONENT_CLEAR_QUOTA_URL = "https://api.weixin.qq.com/cgi-bin/component/clear_quota/v2";
205+
205206
/**
206207
* Gets wx mp service by appid.
207208
*
@@ -1092,7 +1093,7 @@ public interface WxOpenComponentService {
10921093
* 使用 AppSecret 重置第三方平台 API 调用次数
10931094
* https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/clearComponentQuotaByAppSecret.html
10941095
*
1095-
* @param appid 授权用户appid
1096+
* @param appid 授权用户appid
10961097
* @return
10971098
* @throws WxErrorException
10981099
*/

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public WxOpenAuthorizerOptionResult getAuthorizerOption(String authorizerAppid,
402402
jsonObject.addProperty("component_appid", getWxOpenConfigStorage().getComponentAppId());
403403
jsonObject.addProperty("authorizer_appid", authorizerAppid);
404404
jsonObject.addProperty("option_name", optionName);
405-
String responseContent = post(API_GET_AUTHORIZER_OPTION_URL, jsonObject.toString());
405+
String responseContent = post(GET_AUTHORIZER_OPTION_URL, jsonObject.toString());
406406
return WxOpenGsonBuilder.create().fromJson(responseContent, WxOpenAuthorizerOptionResult.class);
407407
}
408408

@@ -413,7 +413,7 @@ public void setAuthorizerOption(String authorizerAppid, String optionName, Strin
413413
jsonObject.addProperty("authorizer_appid", authorizerAppid);
414414
jsonObject.addProperty("option_name", optionName);
415415
jsonObject.addProperty("option_value", optionValue);
416-
post(API_SET_AUTHORIZER_OPTION_URL, jsonObject.toString());
416+
post(SET_AUTHORIZER_OPTION_URL, jsonObject.toString());
417417
}
418418

419419
@Override

0 commit comments

Comments
 (0)