|
|
|
@@ -46,8 +46,7 @@ public class TtWebPostRequestExecutor implements RequestExecutor<String, String> |
|
|
|
|
|
|
|
@Override |
|
|
|
public String execute(String uri, String postEntity, WxType wxType) throws WxErrorException, IOException { |
|
|
|
logger.info("uri{}"+uri); |
|
|
|
logger.info("request{}"+postEntity); |
|
|
|
|
|
|
|
String access_token = handleUrl(uri); |
|
|
|
if(StringUtils.isBlank(access_token)){ |
|
|
|
WxError wxError = WxError.fromJson("{\n" + |
|
|
|
@@ -60,6 +59,9 @@ public class TtWebPostRequestExecutor implements RequestExecutor<String, String> |
|
|
|
HttpPost httpPost = new HttpPost(uri); |
|
|
|
httpPost.addHeader("Content-Type","application/json"); |
|
|
|
httpPost.addHeader("access-token",access_token); |
|
|
|
logger.info("post请求地址uri{}"+uri); |
|
|
|
logger.info("header-----access_token{}"+access_token); |
|
|
|
logger.info("请求参数{}"+postEntity); |
|
|
|
|
|
|
|
if (requestHttp.getRequestHttpProxy() != null) { |
|
|
|
RequestConfig config = RequestConfig.custom().setProxy(requestHttp.getRequestHttpProxy()).build(); |
|
|
|
|