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