【多人仿真调用接口时,修改实训状态】

This commit is contained in:
weizhihong 2023-05-30 14:43:53 +08:00
parent 0be6e02563
commit d9812813d7

View File

@ -143,7 +143,6 @@ public class Training2Service {
if (training2 == null || !training2.isStarted() || training2.isFinish()) {
// 结束并移除运行任务
removeTrainingJob(simulation);
trainingStatusMessage(simulation, 0);
return;
}
// 获取运行步骤
@ -276,7 +275,7 @@ public class Training2Service {
// 创建者退出则清理实训
if (simulation.getCreator().getId().equals(user.getId())) {
training2.finish();
simulation.start();
trainingStatusMessage(simulation, 0);
}
} else {
return List.of();