剧本司机变更不返回记录到剧本中调整
This commit is contained in:
parent
a4cfc79a30
commit
e540f54392
@ -240,9 +240,9 @@ public class ScriptSimulationService implements IScriptSimulationService {
|
|||||||
if (script == null) {
|
if (script == null) {
|
||||||
throw new SimulationException(SimulationExceptionType.System_Fault, "仿真中没有剧本");
|
throw new SimulationException(SimulationExceptionType.System_Fault, "仿真中没有剧本");
|
||||||
}
|
}
|
||||||
script.addAction(action);
|
|
||||||
SocketMessageVO<ScriptActionVO> message = SocketMessageFactory.buildScriptActionMessage(simulation.getId(), new ScriptActionVO(action));
|
SocketMessageVO<ScriptActionVO> 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);
|
stompMessageService.sendToUser(simulation.getSimulationUserIds(), message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user