修改接口bug

This commit is contained in:
王文艳
2026-06-12 20:51:27 +08:00
parent 527dc0f6af
commit 743dc638e9
2 changed files with 2 additions and 2 deletions
@@ -3448,7 +3448,7 @@ public class AddressController {
headers.put("Content-Type", "application/json");
headers.put("Authorization", "Basic " + authenticationEncoding + "");
try {
String response = request.postWithBody("http://192.168.0.45:9200/association/_search", reqBody, headers, "UTF-8");
String response = request.postWithBody("http://192.168.0.206:9200/association/_search", reqBody, headers, "UTF-8");
JSONObject json = JSONObject.fromObject(response);
if (!json.containsKey("hits") || !json.getJSONObject("hits").containsKey("hits")) {
return Collections.emptyList();