fix: 调试

This commit is contained in:
stream 2026-01-04 18:09:12 +08:00
parent 88ac29af57
commit f19aaea613

View File

@ -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.10:8000/action/air", ""); HttpUtil.post("http://192.168.0.102: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.10:8000/action/air", ""); HttpUtil.post("http://192.168.0.102: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.10:8000/action/music", ""); HttpUtil.post("http://192.168.0.102: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.10:8000/action/music", ""); HttpUtil.post("http://192.168.0.102:8000/action/music", "");
musicOn = false; musicOn = false;
return "音乐关闭了"; return "音乐关闭了";
} else { } else {
@ -188,17 +188,17 @@ public class FlowiseActionService {
} }
case DRIVE_MODE_ECONOMY: case DRIVE_MODE_ECONOMY:
HttpUtil.post("http://192.168.0.10:8000/action/drive_economy", ""); HttpUtil.post("http://192.168.0.102:8000/action/drive_economy", "");
log.info("驾驶模式已切换为节能模式"); log.info("驾驶模式已切换为节能模式");
return "驾驶模式已切换为节能模式"; return "驾驶模式已切换为节能模式";
case DRIVE_MODE_COMFORT: case DRIVE_MODE_COMFORT:
HttpUtil.post("http://192.168.0.10:8000/action/drive_comfort", ""); HttpUtil.post("http://192.168.0.102:8000/action/drive_comfort", "");
log.info("驾驶模式已切换为舒适模式"); log.info("驾驶模式已切换为舒适模式");
return "驾驶模式已切换为舒适模式"; return "驾驶模式已切换为舒适模式";
case HELLO: case HELLO:
HttpUtil.post("http://192.168.0.10:8000/action/hello", ""); HttpUtil.post("http://192.168.0.102:8000/action/hello", "");
log.info("打招呼"); log.info("打招呼");
return "打招呼"; return "打招呼";