|
|
|
@ -32,7 +32,7 @@ module ExerciseQuestionsHelper
|
|
|
|
|
|
|
|
|
|
def shixun_game_scores(challenge,ex_answerer,shixun_type,question_id)
|
|
|
|
|
game_score = challenge.question_score
|
|
|
|
|
game_answers = challenge.exercise_shixun_answers.search_shixun_answers("user_id",ex_answerer.id).search_shixun_answers("exercise_question_id",question_id)
|
|
|
|
|
game_answers = challenge.exercise_shixun_answers.where(user_id:ex_answerer.id,exercise_question_id:question_id)
|
|
|
|
|
if shixun_type == 2 && game_answers.present? #试卷已截止,用户才可以查看答案
|
|
|
|
|
s_score = game_answers.first.score
|
|
|
|
|
else
|
|
|
|
|