diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java index dbfd685d7..94c0574f9 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2Service.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2Service.java @@ -972,7 +972,9 @@ public class Training2Service { if (!simulation.getTraining2().isJumpStep(step) && !step.getSimulationMember().isRobot()) { applicationContext.publishEvent( new SimulationTrainingAudioEvent(this, simulation, step, simOperation2, doCompletion)); - if (!doCompletion) { + /* + 取消 发送“请重试”语音 + if (!doCompletion) { Operation.Type operationType; HashMap params = new HashMap<>(event.getParams()); SimulationMember member = null; @@ -997,7 +999,7 @@ public class Training2Service { params.put("content", compose.getMessage()); atsOperationDispatcher.execute(simulation, member, operationType.name(), params); } - } + }*/ } } diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/event/training2/SimulationTrainingAudioEvent.java b/src/main/java/club/joylink/rtss/simulation/cbtc/event/training2/SimulationTrainingAudioEvent.java index 1cea75b43..51c272936 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/event/training2/SimulationTrainingAudioEvent.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/event/training2/SimulationTrainingAudioEvent.java @@ -7,19 +7,25 @@ import club.joylink.rtss.simulation.cbtc.training2.Step2; import club.joylink.rtss.simulation.cbtc.training2.Training2; import lombok.Getter; +/** + * 发送实训当前阶段完成情况 + */ @Getter public class SimulationTrainingAudioEvent extends AbstractSimulationEvent { - private Step2 step; + private Step2 step; - private Operation2.SimCommand2 operation2; + private Operation2.SimCommand2 operation2; - private boolean matchResult; + /** + * 结果是否匹配 + */ + private boolean matchResult; - public SimulationTrainingAudioEvent(Object source, Simulation simulation,Step2 step, Operation2.SimCommand2 operation2, boolean matchResult) { - super(source, simulation); - this.step = step; - this.operation2 = operation2; - this.matchResult = matchResult; - } + public SimulationTrainingAudioEvent(Object source, Simulation simulation, Step2 step, Operation2.SimCommand2 operation2, boolean matchResult) { + super(source, simulation); + this.step = step; + this.operation2 = operation2; + this.matchResult = matchResult; + } }