|
|
|
@@ -113,9 +113,11 @@ public class TtWebServiceImpl implements TtWebService, RequestHttp<CloseableHttp |
|
|
|
RequestConfig config = RequestConfig.custom().setProxy(this.getRequestHttpProxy()).build(); |
|
|
|
httpPost.setConfig(config); |
|
|
|
} |
|
|
|
httpPost.setHeader("Content-Type","multipart/form-data"); |
|
|
|
|
|
|
|
StringEntity entity = new StringEntity(WxGsonBuilder.create().toJson(params), Consts.UTF_8); |
|
|
|
entity.setContentType("multipart/form-data"); |
|
|
|
httpPost.setEntity(entity); |
|
|
|
|
|
|
|
try (CloseableHttpResponse response = getRequestHttpClient().execute(httpPost)) { |
|
|
|
String resultContent = new BasicResponseHandler().handleResponse(response); |
|
|
|
JSONObject jsonObject = JSON.parseObject(resultContent); |
|
|
|
|