mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
update:优化设备工具调用界面与执行结果展示体验
This commit is contained in:
parent
4f64316144
commit
f17011939c
2 changed files with 734 additions and 166 deletions
|
|
@ -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
Loading…
Reference in a new issue