Commit 1519a701 authored by matianhao's avatar matianhao

[瑞成接口] <fix> 修改接口响应

 - 六十六.浙江省企业基本信息查询:增加响应头
parent 6000b3c3
......@@ -1217,7 +1217,12 @@ public class RequestController {
shareholderInfoJsonArray.add(jsonObject);
});
((JSONObject) jsonResponse.getJSONArray("datas").get(0)).put("shareholderInfoList", shareholderInfoJsonArray);
return new ResponseEntity<>(jsonResponse.toJSONString(), response.getHeaders(), HttpStatus.OK);
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
headers.set("Transfer-Encoding", "chunked");
ResponseEntity<String> stringResponseEntity = new ResponseEntity<>(jsonResponse.toJSONString(), headers, HttpStatus.OK);
log.info("处理标准数据:{}", stringResponseEntity);
return stringResponseEntity;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment