dev_course
SylorHuang 6 years ago
parent e318ee25b5
commit 2ec730e4fd

@ -5,4 +5,5 @@ json.partial! "exercise_questions/exercise_questions",
choices:@exercise_choices,
shixun_challenges: @exercise_question_shixun,
exercise_type:1,
user_answer:[]
user_answer:[],
ques_position:nil

@ -5,4 +5,5 @@ json.partial! "exercise_questions/exercise_questions",
choices:@exercise_choices,
shixun_challenges: @exercise_question_shixun,
exercise_type:1,
user_answer:[]
user_answer:[],
ques_position:nil

@ -62,7 +62,8 @@ json.exercise_questions do
shixun_challenges: q.exercise_shixun_challenges,
exercise_type: ex_type,
user_answer: user_ques_answers[:answered_content],
shixun_type: user_ques_answers[:shixun_type]
shixun_type: user_ques_answers[:shixun_type],
ques_position:nil
if user_ques_comments.count > 0
json.question_comments do
json.partial! "exercises/exercise_comments", question_comment:user_ques_answers[:question_comment].first

@ -11,7 +11,8 @@ json.exercise_questions do
choices:q.exercise_choices,
shixun_challenges: q.exercise_shixun_challenges,
exercise_type:2,
user_answer:[]
user_answer:[],
ques_position:nil
end
end

@ -15,7 +15,8 @@ json.exercise_questions do
shixun_challenges: q.exercise_shixun_challenges,
exercise_type:1,
user_answer:[],
shixun_type:0
shixun_type:0,
ques_position:nil
end
end

@ -18,7 +18,8 @@ json.exercise_questions do
shixun_challenges: q.exercise_shixun_challenges,
exercise_type:1,
user_answer:[],
shixun_type:0
shixun_type:0,
ques_position:nil
end
end

Loading…
Cancel
Save