dev_aliyun_beta
SylorHuang 6 years ago
parent 37f6e501fe
commit 8d97bbfbfa

@ -680,7 +680,7 @@ class ExerciseQuestionsController < ApplicationController
normal_status(-1,"已发布/已截止,不允许增删答案!")
elsif standard_answer.present?
if @exercise_question.question_type == Exercise::COMPLETION
exercise_answers_text = standard_answer.map{|a| a[:answer_text]}.sum.uniq
exercise_answers_text = standard_answer.map{|a| a[:answer_text]}.sum
unless (standard_answer.count == exercise_choice_ids.count) && (standard_answers_text.count == exercise_answers_text.count)
normal_status(-1,"已发布/已截止,不允许增删标准答案!")
end

Loading…
Cancel
Save