|
@@ -565,6 +565,10 @@ public class ImportPaperService {
|
|
|
}
|
|
|
importPaperCheck.setQuesCount(getContent(tmpText,ImportPaperMsg.questionNum_word));
|
|
|
} else if (tmpText.startsWith(ImportPaperMsg.score_word)) {
|
|
|
+ if(!CommonUtils.isInteger(getContent(tmpText,ImportPaperMsg.questionNum_word))){
|
|
|
+ importPaperCheck.setErrorInfo("[分数]的格式不正确");
|
|
|
+ throw new PaperException(importPaperCheck.errorInfo);
|
|
|
+ }
|
|
|
importPaperCheck.setQuesScore(getContent(tmpText,ImportPaperMsg.score_word));
|
|
|
} else if (StringUtils.isEmpty(tmpText)) {
|
|
|
continue;
|