|
@@ -555,6 +555,10 @@ public class ImportPaperService {
|
|
|
}
|
|
|
importPaperCheck.setQuesName(getContent(tmpText,ImportPaperMsg.questionName_word));
|
|
|
} else if (tmpText.startsWith(ImportPaperMsg.questionNum_word)) {
|
|
|
+ if(!CommonUtils.isInteger(getContent(tmpText,ImportPaperMsg.questionNum_word))){
|
|
|
+ importPaperCheck.setErrorInfo("[题目数量]的格式不正确");
|
|
|
+ throw new PaperException(importPaperCheck.errorInfo);
|
|
|
+ }
|
|
|
if(!nextTmpText.startsWith(ImportPaperMsg.score_word)){
|
|
|
importPaperCheck.setErrorInfo("[题目数量]的下一题头应该是[分数],当前读到的信息为:“"+nextTmpText+"”,请检查word中格式问题");
|
|
|
throw new PaperException(importPaperCheck.errorInfo);
|