From e540f54392f5416f7b10c53ccdc32307cd61ffb5 Mon Sep 17 00:00:00 2001 From: tiger_zhou <123456> Date: Thu, 28 Jul 2022 14:48:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=A7=E6=9C=AC=E5=8F=B8=E6=9C=BA=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E4=B8=8D=E8=BF=94=E5=9B=9E=E8=AE=B0=E5=BD=95=E5=88=B0?= =?UTF-8?q?=E5=89=A7=E6=9C=AC=E4=B8=AD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/services/script/ScriptSimulationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/script/ScriptSimulationService.java b/src/main/java/club/joylink/rtss/services/script/ScriptSimulationService.java index af166af48..8c6477a13 100644 --- a/src/main/java/club/joylink/rtss/services/script/ScriptSimulationService.java +++ b/src/main/java/club/joylink/rtss/services/script/ScriptSimulationService.java @@ -240,9 +240,9 @@ public class ScriptSimulationService implements IScriptSimulationService { if (script == null) { throw new SimulationException(SimulationExceptionType.System_Fault, "仿真中没有剧本"); } - script.addAction(action); SocketMessageVO message = SocketMessageFactory.buildScriptActionMessage(simulation.getId(), new ScriptActionVO(action)); - if(!(message.getBody().getOperationType() == Operation.Type.Driver_Gear_Change)){ + if(!Operation.Type.Driver_Gear_Change.equals(message.getBody().getOperationType())){ + script.addAction(action); stompMessageService.sendToUser(simulation.getSimulationUserIds(), message); } }