Procházet zdrojové kódy

//update test

release_toaliyun_real
xhxu před 4 roky
rodič
revize
5b965bf28c
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebServiceImpl.java

+ 3
- 1
mallinkService/src/main/java/com/iformall/douyin/web/api/impl/TtWebServiceImpl.java Zobrazit soubor

@@ -113,9 +113,11 @@ public class TtWebServiceImpl implements TtWebService, RequestHttp<CloseableHttp
RequestConfig config = RequestConfig.custom().setProxy(this.getRequestHttpProxy()).build(); RequestConfig config = RequestConfig.custom().setProxy(this.getRequestHttpProxy()).build();
httpPost.setConfig(config); httpPost.setConfig(config);
} }
httpPost.setHeader("Content-Type","multipart/form-data");

StringEntity entity = new StringEntity(WxGsonBuilder.create().toJson(params), Consts.UTF_8); StringEntity entity = new StringEntity(WxGsonBuilder.create().toJson(params), Consts.UTF_8);
entity.setContentType("multipart/form-data");
httpPost.setEntity(entity); httpPost.setEntity(entity);

try (CloseableHttpResponse response = getRequestHttpClient().execute(httpPost)) { try (CloseableHttpResponse response = getRequestHttpClient().execute(httpPost)) {
String resultContent = new BasicResponseHandler().handleResponse(response); String resultContent = new BasicResponseHandler().handleResponse(response);
JSONObject jsonObject = JSON.parseObject(resultContent); JSONObject jsonObject = JSON.parseObject(resultContent);


Načítá se…
Zrušit
Uložit