mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
update:优化设备工具调用界面与执行结果展示体验
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ public class DeviceController {
|
|||||||
headers.set("Authorization", "Bearer " + token);
|
headers.set("Authorization", "Bearer " + token);
|
||||||
|
|
||||||
// 构建请求体JSON
|
// 构建请求体JSON
|
||||||
String jsonBody = "{\"deviceIds\":" + objectMapper.writeValueAsString(deviceIds) + "}";
|
String jsonBody = "{\"clientIds\":" + objectMapper.writeValueAsString(deviceIds) + "}";
|
||||||
HttpEntity<String> requestEntity = new HttpEntity<>(jsonBody, headers);
|
HttpEntity<String> requestEntity = new HttpEntity<>(jsonBody, headers);
|
||||||
|
|
||||||
// 发送POST请求
|
// 发送POST请求
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user