From f17011939c32f269972955b750f9417119366e18 Mon Sep 17 00:00:00 2001 From: 3030332422 <3030332422@qq.com> Date: Thu, 18 Sep 2025 10:56:41 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E8=B0=83=E7=94=A8=E7=95=8C=E9=9D=A2=E4=B8=8E?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=BB=93=E6=9E=9C=E5=B1=95=E7=A4=BA=E4=BD=93?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/controller/DeviceController.java | 2 +- .../src/components/McpToolCallDialog.vue | 898 ++++++++++++++---- 2 files changed, 734 insertions(+), 166 deletions(-) diff --git a/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java b/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java index 65987265..cc4eb5a3 100644 --- a/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java +++ b/main/manager-api/src/main/java/xiaozhi/modules/device/controller/DeviceController.java @@ -136,7 +136,7 @@ public class DeviceController { headers.set("Authorization", "Bearer " + token); // 构建请求体JSON - String jsonBody = "{\"deviceIds\":" + objectMapper.writeValueAsString(deviceIds) + "}"; + String jsonBody = "{\"clientIds\":" + objectMapper.writeValueAsString(deviceIds) + "}"; HttpEntity requestEntity = new HttpEntity<>(jsonBody, headers); // 发送POST请求 diff --git a/main/manager-web/src/components/McpToolCallDialog.vue b/main/manager-web/src/components/McpToolCallDialog.vue index 0eeed9e0..eb7ef85f 100644 --- a/main/manager-web/src/components/McpToolCallDialog.vue +++ b/main/manager-web/src/components/McpToolCallDialog.vue @@ -1,8 +1,13 @@