Commit 8ef0a0d3 by 丁伟峰

fix: 请求内容格式

1 parent fd1ea2bd
...@@ -137,7 +137,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService { ...@@ -137,7 +137,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
// 设置请求头 // 设置请求头
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON); headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
// 构建请求参数 // 构建请求参数
String url; String url;
...@@ -152,7 +152,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService { ...@@ -152,7 +152,7 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
} }
params.add("need_district", "false"); params.add("need_district", "false");
params.add("need_layer", "true"); params.add("need_layer", "true");
params.add("related_point_fields", ""); // params.add("related_point_fields", "");
params.add("area_fields", "名称,唯一编号"); params.add("area_fields", "名称,唯一编号");
log.info("request params ==> {}", params); log.info("request params ==> {}", params);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!