Explorar el Código

//update test

release_toaliyun_real
xhxu hace 4 años
padre
commit
b720a80623
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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 Ver fichero

@@ -114,12 +114,14 @@ public class TtWebServiceImpl implements TtWebService, RequestHttp<CloseableHttp
httpPost.setConfig(config); httpPost.setConfig(config);
} }
httpPost.setHeader("Content-Type","multipart/form-data"); httpPost.setHeader("Content-Type","multipart/form-data");
log.info("------------"+WxGsonBuilder.create().toJson(params));
StringEntity entity = new StringEntity(WxGsonBuilder.create().toJson(params), Consts.UTF_8); StringEntity entity = new StringEntity(WxGsonBuilder.create().toJson(params), Consts.UTF_8);
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);
log.info("--------------"+resultContent);
JSONObject jsonObject = JSON.parseObject(resultContent); JSONObject jsonObject = JSON.parseObject(resultContent);
JSONObject data = jsonObject.getJSONObject("data"); JSONObject data = jsonObject.getJSONObject("data");
WxError error = WxError.fromJson(data.toJSONString()); WxError error = WxError.fromJson(data.toJSONString());


Cargando…
Cancelar
Guardar