This commit is contained in:
zhuangyuanke 2025-02-06 16:24:47 +08:00
parent 9304e21f01
commit 4632a78224

View File

@ -728,7 +728,10 @@ public class AIOBServiceImpl implements IAIOBService {
if (StringUtils.isNotBlank(currentQuestion)) {
for (int i = 0; i < speechList.size(); i++) {
if (StringUtils.equals(speechList.get(i).getContextText(), currentQuestion)) {
return speechList.get(i+1);
if (speechList.size() >= i + 1)
return speechList.get(i + 1);
else
return null;
}
}
}