Просмотр исходного кода

//update test

release_toaliyun_real
xhxu 4 лет назад
Родитель
Сommit
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);


Загрузка…
Отмена
Сохранить