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 7b8bd86..79a227a 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 @@ -57,7 +57,7 @@ public class FlowiseActionService { private String chatId = null; public String start(FlowiseStartRequestVO request) { - log.info("flowise start"); + log.info("flowise start: {}", System.currentTimeMillis()); abort(); synchronized (lock) { if (chatId != null) { @@ -91,9 +91,7 @@ public class FlowiseActionService { public String abort() { CallAPIUtil.doPostJson(flowiseTts + "stop", null, null); Map instContextMap = taskContextManager.getInstContextMap(); - instContextMap.forEach((key, value) -> { - flowControlService.stop(key); - }); + instContextMap.forEach((key, value) -> flowControlService.stop(key)); synchronized (lock) { if (chatId == null) { @@ -114,7 +112,7 @@ public class FlowiseActionService { } public String command(FlowiseActionRequestVO request) { - log.info("command start"); + log.info("command start: {}", System.currentTimeMillis()); String action = request.getAction(); FlowiseActionEnum actionEnum = FlowiseActionEnum.fromAction(action); String terminalId = "4ed1246c465b97975f96c9ef8371a3bd"; @@ -142,7 +140,7 @@ public class FlowiseActionService { } public String chat(FlowiseChatRequestVO requestVO) { - log.info("chat start"); + log.info("chat start: {}", System.currentTimeMillis()); Map body = new HashMap<>(); body.put("text", requestVO.getText()); body.put("voice", "x4_yezi");