json.course_id course.id
json.course_name course.name
json.is_end course.is_end
json.category homework.category_info
member = course.course_members.find_by(user_id: user.id, is_active: 1)
curr_status = homework_curr_status(homework, user.course_identity(course), course, member, member&.teacher_course_groups)
json.homework_status curr_status[:status]
json.time_status curr_status[:time_status]
json.homework_name homework.name
json.homework_id homework.id 
json.homework_type homework.homework_type
if homework.homework_type == "practice"
  json.shixun_identifier homework.shixuns.take.try(:identifier)
  json.shixun_id homework.shixuns.take.try(:id)
  json.shixun_status homework.shixuns.take.try(:status).to_i
end
