修改接口bug
This commit is contained in:
Vendored
+1
-1
@@ -151,7 +151,7 @@ pipeline {
|
|||||||
|
|
||||||
# 热重载
|
# 热重载
|
||||||
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${cfg.deployHost} '
|
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${cfg.deployHost} '
|
||||||
docker kill --signal=SIGHUP ${cfg.serviceName}
|
docker docker exec fangjia-script kill -SIGHUP 1
|
||||||
'
|
'
|
||||||
"""
|
"""
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+1
-1
@@ -3448,7 +3448,7 @@ public class AddressController {
|
|||||||
headers.put("Content-Type", "application/json");
|
headers.put("Content-Type", "application/json");
|
||||||
headers.put("Authorization", "Basic " + authenticationEncoding + "");
|
headers.put("Authorization", "Basic " + authenticationEncoding + "");
|
||||||
try {
|
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);
|
JSONObject json = JSONObject.fromObject(response);
|
||||||
if (!json.containsKey("hits") || !json.getJSONObject("hits").containsKey("hits")) {
|
if (!json.containsKey("hits") || !json.getJSONObject("hits").containsKey("hits")) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|||||||
Reference in New Issue
Block a user