修改剧本运行bug
This commit is contained in:
parent
11d4f7b154
commit
7112697216
@ -228,7 +228,10 @@ public class CompetitionAndScriptManager {
|
||||
case Conversation:
|
||||
if (unfinishedAction.isAudioPlaying()) {
|
||||
// 获取当前会话
|
||||
Conversation conversation = simulation.getSimulationConversationMap().get(unfinishedAction.getConversationId());
|
||||
Conversation conversation = simulation.findValidConversationBySimulationMember(unfinishedAction.getMember());
|
||||
if (conversation == null) {
|
||||
throw new SimulationException(SimulationExceptionType.System_Fault, "剧本会话动作执行所需会话未创建");
|
||||
}
|
||||
if (conversation.getMemberList().stream().allMatch(m -> m.getMember().isRobot())) { // 会话人员全部是机器人
|
||||
unfinishedAction.finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user