【如果会话中全部为机器人,则直接完成】
This commit is contained in:
parent
84b591ae9d
commit
8e5a49628d
@ -237,7 +237,9 @@ public class CompetitionAndScriptManager {
|
|||||||
if (scriptExecuteService.executeAction(simulation, unfinishedAction, correctSystemTime)) {
|
if (scriptExecuteService.executeAction(simulation, unfinishedAction, correctSystemTime)) {
|
||||||
unfinishedAction.playAudio();
|
unfinishedAction.playAudio();
|
||||||
}
|
}
|
||||||
if (unfinishedAction.getMember().isRobot()) { // 在音频播放后,如果是机器人,则直接完成操作
|
// 获取当前会话
|
||||||
|
Conversation conversation = simulation.getSimulationConversationMap().get(unfinishedAction.getConversationId());
|
||||||
|
if (conversation.getMemberList().stream().allMatch(m -> m.getMember().isRobot())) { // 会话人员全部是机器人
|
||||||
unfinishedAction.finish();
|
unfinishedAction.finish();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user