|
@@ -83,7 +83,7 @@ public class CommitController {
|
|
|
}
|
|
|
|
|
|
private boolean judgeQuestion(Question question) {
|
|
|
- String ans = question.getAns();
|
|
|
+ String ans = question.getAnswer();
|
|
|
if (StringUtils.isEmpty(ans)) {
|
|
|
return false;
|
|
|
}
|
|
@@ -136,7 +136,7 @@ public class CommitController {
|
|
|
double sectionTotalScore = sectionReport.getTotalScore();
|
|
|
sectionReport.setTotalScore(sectionTotalScore + score);
|
|
|
QuestionCommit questionCommit = new QuestionCommit();
|
|
|
- questionCommit.setAns(question.getAns());
|
|
|
+ questionCommit.setAns(question.getAnswer());
|
|
|
questionCommit.setQid(question.getId());
|
|
|
questionCommit.setUsetime(question.getUsetime());
|
|
|
questionCommit.setCorrect(false);
|