优化
This commit is contained in:
@@ -99,7 +99,7 @@ public class DivisionBatchTest {
|
|||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
String response = restTemplate.getForObject("http://" + IP + "/FangJiaAddressService/fiveDivisionStructure?city={city}&address={address}", String.class, city, address);
|
String response = restTemplate.getForObject("http://" + IP + "/FangJiaAddressService/divisionStructure?city={city}&address={address}", String.class, city, address);
|
||||||
FangJiaApiResponse<JSONObject> apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class);
|
FangJiaApiResponse<JSONObject> apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class);
|
||||||
try {
|
try {
|
||||||
if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {
|
if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user