Commit 8a2533ec authored by 朱国瑞's avatar 朱国瑞

修改丰富场景模式分镜逻辑补充

parent 8b583553
...@@ -44,6 +44,9 @@ export default class utils { ...@@ -44,6 +44,9 @@ export default class utils {
currentSentence += str + ','; currentSentence += str + ',';
if (i < sentences.length - 1 && (currentSentence + sentences[i + 1]).length <= 20) { if (i < sentences.length - 1 && (currentSentence + sentences[i + 1]).length <= 20) {
continue; continue;
}
if (currentSentence.length < 10) {
continue;
} }
result_sentences.push(currentSentence.endsWith(",") ? currentSentence.slice(0, -1) : currentSentence); result_sentences.push(currentSentence.endsWith(",") ? currentSentence.slice(0, -1) : currentSentence);
currentSentence = ''; currentSentence = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment