From b496dc08f4effda994c50440dcc297ccfa5802a0 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Mon, 10 Apr 2023 14:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=BB=98=E8=AE=A4=E5=9F=8E?= =?UTF-8?q?=E5=B8=82=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BatchTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) {