diff --git a/src/BatchTest.java b/src/BatchTest.java index 51bda5b..b5c2819 100644 --- a/src/BatchTest.java +++ b/src/BatchTest.java @@ -61,7 +61,7 @@ public class BatchTest { final String address = addressTemp; executorService.submit(() -> { try { - String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/fiveDivisionStructure?address={address}&city=江阴市&type={type}", String.class, address, type); + String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/fiveDivisionStructure?address={address}&type={type}", String.class, address, type); FangJiaApiResponse apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class); if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) { List addressList = new ArrayList<>(); @@ -90,7 +90,7 @@ public class BatchTest { } catch (InterruptedException e) { } - String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/fiveDivisionStructure?address={address}&city=江阴市", String.class, address); + String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/fiveDivisionStructure?address={address}", String.class, address); FangJiaApiResponse apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class); try { if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {