|
|
@@ -45,8 +45,7 @@ public class TtWebGetRequestExecutor implements RequestExecutor<String, String> |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String execute(String uri, String queryParam, WxType wxType) throws WxErrorException, IOException { |
|
|
public String execute(String uri, String queryParam, WxType wxType) throws WxErrorException, IOException { |
|
|
logger.info("uri{}"+uri); |
|
|
|
|
|
logger.info("request{}"+queryParam); |
|
|
|
|
|
|
|
|
|
|
|
String access_token = handleUrl(uri); |
|
|
String access_token = handleUrl(uri); |
|
|
if(StringUtils.isBlank(access_token)){ |
|
|
if(StringUtils.isBlank(access_token)){ |
|
|
WxError wxError = WxError.fromJson("{\n" + |
|
|
WxError wxError = WxError.fromJson("{\n" + |
|
|
@@ -66,6 +65,9 @@ public class TtWebGetRequestExecutor implements RequestExecutor<String, String> |
|
|
HttpGet httpGet = new HttpGet(uri); |
|
|
HttpGet httpGet = new HttpGet(uri); |
|
|
httpGet.addHeader("Content-Type","application/json"); |
|
|
httpGet.addHeader("Content-Type","application/json"); |
|
|
httpGet.addHeader("access-token",access_token); |
|
|
httpGet.addHeader("access-token",access_token); |
|
|
|
|
|
logger.info("get请求地址uri{}"+uri); |
|
|
|
|
|
logger.info("header-----access_token{}"+access_token); |
|
|
|
|
|
|
|
|
if (requestHttp.getRequestHttpProxy() != null) { |
|
|
if (requestHttp.getRequestHttpProxy() != null) { |
|
|
RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); |
|
|
RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); |
|
|
httpGet.setConfig(config); |
|
|
httpGet.setConfig(config); |
|
|
|