From f3a464885889b5bf7c173057847189aeefffcc35 Mon Sep 17 00:00:00 2001 From: stream Date: Sun, 4 Jan 2026 18:18:01 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cmvr/test/service/FlowiseActionService.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowiseActionService.java b/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowiseActionService.java index 232c006..6611e00 100644 --- a/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowiseActionService.java +++ b/cmvr-iot-test/src/main/java/com/cmvr/test/service/FlowiseActionService.java @@ -198,7 +198,13 @@ public class FlowiseActionService { return "驾驶模式已切换为舒适模式"; case HELLO: - HttpUtil.post("http://192.168.0.102:8000/action/hello", ""); + executor.submit(() -> { + try { + HttpUtil.post("http://192.168.0.102:8000/action/hello", ""); + } catch (Exception e) { + throw new GlobalException("打招呼失败: ", e.getMessage()); + } + }); log.info("打招呼"); return "打招呼";