|
|
@ -638,6 +638,9 @@ module ExercisesHelper
|
|
|
|
if student_status == 2 #当前为老师,或为学生且已提交
|
|
|
|
if student_status == 2 #当前为老师,或为学生且已提交
|
|
|
|
user_score = exercise_answers.score_reviewed.pluck(:score).sum
|
|
|
|
user_score = exercise_answers.score_reviewed.pluck(:score).sum
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
if user_score > q.question_score
|
|
|
|
|
|
|
|
user_score = q.question_score
|
|
|
|
|
|
|
|
end
|
|
|
|
if ques_type <= 2
|
|
|
|
if ques_type <= 2
|
|
|
|
answered_content = exercise_answers.pluck(:exercise_choice_id)
|
|
|
|
answered_content = exercise_answers.pluck(:exercise_choice_id)
|
|
|
|
elsif ques_type == 3
|
|
|
|
elsif ques_type == 3
|
|
|
|