fix: 调试
This commit is contained in:
parent
f3a4648858
commit
5ab48c7048
@ -123,7 +123,7 @@ api:
|
||||
|
||||
flowise:
|
||||
tts: 192.168.0.222:8080/tts/
|
||||
start: http://192.168.0.108:3000/api/v1/prediction/f99329e9-b33d-437d-90ed-69eaa8a05418
|
||||
abort: http://192.168.0.108:3000/api/v1/chatmessage/abort/f99329e9-b33d-437d-90ed-69eaa8a05418/
|
||||
start: http://192.168.0.108:3000/api/v1/prediction/86f01c9d-aaf4-495e-9530-d02e3172c807
|
||||
abort: http://192.168.0.108:3000/api/v1/chatmessage/abort/86f01c9d-aaf4-495e-9530-d02e3172c807/
|
||||
query: http://192.168.0.108:3000/api/v1/executions/
|
||||
api-key: pg61JW6W_GXyqmqSoURJ4mlSRrCMRzGLBJli_w3BFkg
|
||||
@ -145,7 +145,7 @@ public class FlowiseActionService {
|
||||
case AC_ON:
|
||||
if (!acOn) {
|
||||
log.info("空调打开了");
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/air", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/air", "");
|
||||
acOn = true;
|
||||
return "空调打开了";
|
||||
} else {
|
||||
@ -157,7 +157,7 @@ public class FlowiseActionService {
|
||||
case AC_OFF:
|
||||
if (acOn) {
|
||||
log.info("空调关闭了");
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/air", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/air", "");
|
||||
acOn = false;
|
||||
return "空调关闭了";
|
||||
} else {
|
||||
@ -168,7 +168,7 @@ public class FlowiseActionService {
|
||||
case MUSIC_ON:
|
||||
if (!musicOn) {
|
||||
log.info("音乐打开了");
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/music", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/music", "");
|
||||
musicOn = true;
|
||||
return "音乐打开了";
|
||||
} else {
|
||||
@ -179,7 +179,7 @@ public class FlowiseActionService {
|
||||
case MUSIC_OFF:
|
||||
if (musicOn) {
|
||||
log.info("音乐关闭了");
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/music", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/music", "");
|
||||
musicOn = false;
|
||||
return "音乐关闭了";
|
||||
} else {
|
||||
@ -188,19 +188,19 @@ public class FlowiseActionService {
|
||||
}
|
||||
|
||||
case DRIVE_MODE_ECONOMY:
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/drive_economy", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/drive_economy", "");
|
||||
log.info("驾驶模式已切换为节能模式");
|
||||
return "驾驶模式已切换为节能模式";
|
||||
|
||||
case DRIVE_MODE_COMFORT:
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/drive_comfort", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/drive_comfort", "");
|
||||
log.info("驾驶模式已切换为舒适模式");
|
||||
return "驾驶模式已切换为舒适模式";
|
||||
|
||||
case HELLO:
|
||||
executor.submit(() -> {
|
||||
try {
|
||||
HttpUtil.post("http://192.168.0.102:8000/action/hello", "");
|
||||
HttpUtil.post("http://192.168.0.222:8000/action/hello", "");
|
||||
} catch (Exception e) {
|
||||
throw new GlobalException("打招呼失败: ", e.getMessage());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user