【多人仿真调用接口时,修改实训状态】
This commit is contained in:
parent
0be6e02563
commit
d9812813d7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user