Преглед изворни кода

//update test

release_toaliyun_real
xhxu пре 4 година
родитељ
комит
5b965bf28c
1 измењених фајлова са 3 додато и 1 уклоњено
  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 Прегледај датотеку

@@ -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);


Loading…
Откажи
Сачувај