@@ -146,7 +146,7 @@ public String getSuiteJsApiTicket(String authCorpId) throws WxErrorException {
146
146
if (this .configStorage .isAuthSuiteJsApiTicketExpired (authCorpId )) {
147
147
148
148
String resp = get (configStorage .getApiUrl (GET_SUITE_JSAPI_TICKET ),
149
- "type=agent_config&access_token=" + this .configStorage .getAccessToken (authCorpId ));
149
+ "type=agent_config&access_token=" + this .configStorage .getAccessToken (authCorpId ), true );
150
150
151
151
JsonObject jsonObject = GsonParser .parse (resp );
152
152
if (jsonObject .get ("errcode" ).getAsInt () == 0 ) {
@@ -176,7 +176,7 @@ public String getAuthCorpJsApiTicket(String authCorpId) throws WxErrorException
176
176
if (this .configStorage .isAuthCorpJsApiTicketExpired (authCorpId )) {
177
177
178
178
String resp = get (configStorage .getApiUrl (GET_AUTH_CORP_JSAPI_TICKET ),
179
- "access_token=" + this .configStorage .getAccessToken (authCorpId ));
179
+ "access_token=" + this .configStorage .getAccessToken (authCorpId ), true );
180
180
181
181
JsonObject jsonObject = GsonParser .parse (resp );
182
182
if (jsonObject .get ("errcode" ).getAsInt () == 0 ) {
@@ -303,6 +303,11 @@ public String get(String url, String queryParam) throws WxErrorException {
303
303
return execute (SimpleGetRequestExecutor .create (this ), url , queryParam );
304
304
}
305
305
306
+ @ Override
307
+ public String get (String url , String queryParam , boolean withoutSuiteAccessToken ) throws WxErrorException {
308
+ return execute (SimpleGetRequestExecutor .create (this ), url , queryParam , withoutSuiteAccessToken );
309
+ }
310
+
306
311
@ Override
307
312
public String post (String url , String postData ) throws WxErrorException {
308
313
return execute (SimplePostRequestExecutor .create (this ), url , postData ,false );
0 commit comments