diff --git a/policeSecurityServer/src/main/java/com/changhu/task/SecurityAssociationDockingServiceTask.java b/policeSecurityServer/src/main/java/com/changhu/task/SecurityAssociationDockingServiceTask.java index ca7bd6c..05b797b 100644 --- a/policeSecurityServer/src/main/java/com/changhu/task/SecurityAssociationDockingServiceTask.java +++ b/policeSecurityServer/src/main/java/com/changhu/task/SecurityAssociationDockingServiceTask.java @@ -57,9 +57,7 @@ public class SecurityAssociationDockingServiceTask { } public JSONObject querySecurityNumberByIdCard(String idCard) { - HttpRequest request = HttpUtil.createPost(BASE_HOST + "/api/security/query"); - //请求头参数 - request.form("token", TOKEN); + HttpRequest request = HttpUtil.createPost(BASE_HOST + "/api/security/query?token=" + TOKEN); //请求体参数 request.body(JSONObject.of("idcard", idCard).toJSONString()); try (HttpResponse response = request.execute()) {