剧本司机变更不返回记录到剧本中

This commit is contained in:
tiger_zhou 2022-07-28 11:55:31 +08:00
parent 8e5a49628d
commit 3b9d822f80

View File

@ -242,7 +242,9 @@ public class ScriptSimulationService implements IScriptSimulationService {
}
script.addAction(action);
SocketMessageVO<ScriptActionVO> message = SocketMessageFactory.buildScriptActionMessage(simulation.getId(), new ScriptActionVO(action));
stompMessageService.sendToUser(simulation.getSimulationUserIds(), message);
if(!(message.getBody().getOperationType() == Operation.Type.Driver_Gear_Change)){
stompMessageService.sendToUser(simulation.getSimulationUserIds(), message);
}
}
@Override