@@ -146,7 +146,7 @@ public String getSuiteJsApiTicket(String authCorpId) throws WxErrorException {
146146 if (this .configStorage .isAuthSuiteJsApiTicketExpired (authCorpId )) {
147147
148148 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 );
150150
151151 JsonObject jsonObject = GsonParser .parse (resp );
152152 if (jsonObject .get ("errcode" ).getAsInt () == 0 ) {
@@ -176,7 +176,7 @@ public String getAuthCorpJsApiTicket(String authCorpId) throws WxErrorException
176176 if (this .configStorage .isAuthCorpJsApiTicketExpired (authCorpId )) {
177177
178178 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 );
180180
181181 JsonObject jsonObject = GsonParser .parse (resp );
182182 if (jsonObject .get ("errcode" ).getAsInt () == 0 ) {
@@ -303,6 +303,11 @@ public String get(String url, String queryParam) throws WxErrorException {
303303 return execute (SimpleGetRequestExecutor .create (this ), url , queryParam );
304304 }
305305
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+
306311 @ Override
307312 public String post (String url , String postData ) throws WxErrorException {
308313 return execute (SimplePostRequestExecutor .create (this ), url , postData ,false );
0 commit comments