【剧本会话参与者先挂电话后,会话不能结束BUG】
This commit is contained in:
parent
e540f54392
commit
03760bffd3
@ -211,6 +211,7 @@ public class CompetitionAndScriptManager {
|
||||
return;
|
||||
}
|
||||
unfinishedAction.finish();
|
||||
scriptExecuteService.executeAction(simulation, unfinishedAction, correctSystemTime);
|
||||
unfinishedAction = script.getNextNeedPassAction();
|
||||
}
|
||||
return;
|
||||
@ -232,16 +233,16 @@ public class CompetitionAndScriptManager {
|
||||
break;
|
||||
case Conversation:
|
||||
if (unfinishedAction.isAudioPlaying()) {
|
||||
// 获取当前会话
|
||||
Conversation conversation = simulation.getSimulationConversationMap().get(unfinishedAction.getConversationId());
|
||||
if (conversation.getMemberList().stream().allMatch(m -> m.getMember().isRobot())) { // 会话人员全部是机器人
|
||||
unfinishedAction.finish();
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (scriptExecuteService.executeAction(simulation, unfinishedAction, correctSystemTime)) {
|
||||
unfinishedAction.playAudio();
|
||||
}
|
||||
// 获取当前会话
|
||||
Conversation conversation = simulation.getSimulationConversationMap().get(unfinishedAction.getConversationId());
|
||||
if (conversation.getMemberList().stream().allMatch(m -> m.getMember().isRobot())) { // 会话人员全部是机器人
|
||||
unfinishedAction.finish();
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new SimulationException(SimulationExceptionType.System_Fault, "未知的动作类型");
|
||||
|
Loading…
Reference in New Issue
Block a user