fix(question): 修复判断题答案验证逻辑

dev
zhaokai 2026-03-06 19:30:41 +08:00
parent 0d46e34ca1
commit 5dd81cd81c
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ public class QuestionE extends BaseE {
}
}
//判断题答案只能是AB中的一个
if (!entity.getAnswer().matches("[A-B]") ||entity.getAnswer().length()>1) {
errList.add("单选题第" + (i + 2) + "行答案错误");
if (!entity.getAnswer().matches("[F-T]") ||entity.getAnswer().length()>1) {
errList.add("判断题第" + (i + 2) + "行答案错误");
}
}
}