Commit fef499ee authored by alex yao's avatar alex yao

fix: 文件转换多次异常

parent 8ada8e16
......@@ -444,13 +444,13 @@ public class KnowledgeServiceImpl implements KnowledgeService {
Cell next = cellIterator.next();
if (StringUtils.isNotBlank(next.toString())) {
if (next.toString().length() > 1000) { // 每格字数不可超1000字
throw new I18nMessageException("exception/file.content.more.than.1000");
throw new I18nMessageException("exception/file.cell.content.more.than.1000");
}
totalWordCount += next.toString().length();
}
}
if (totalWordCount > 3000) { //每行字数不可超3000字
throw new I18nMessageException("exception/file.content.more.than.3000");
throw new I18nMessageException("exception/file.rows.content.more.than.3000");
}
}
return true;
......
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