forked from Gitlink/forgeplus
16 lines
963 B
Ruby
16 lines
963 B
Ruby
json.status 0
|
|
json.message "success"
|
|
json.count @competition_users_count
|
|
json.data do
|
|
json.array! @competition_users.to_a do |c_user|
|
|
json.extract! c_user, :id, :org_name, :org_job, :org_rank, :leader, :zone, :sub_competition, :subject_source_type, :subject_source_name, :status, :mail, :ext1, :ext2, :ext3, :ext4, :ext5
|
|
json.user_id c_user.user_id
|
|
json.user_real_name c_user.user&.real_name
|
|
# json.members c_user.members
|
|
json.rank_num @rank_num.rindex(c_user.id).to_i + 1
|
|
json.score @stage.present? ? c_user.stage_score(@stage) : c_user.score
|
|
json.last_score @stage.present? ? c_user.stage_last_score(@stage) : c_user.last_score
|
|
json.other_score_1 c_user.api_result_data["repeatTripleSet"].present? ? c_user.api_result_data["repeatTripleSet"] : 0
|
|
json.other_score_json @stage.present? && c_user.stage_max_score_data(@stage)["data"].present? ? c_user.stage_max_score_data(@stage)["data"] : c_user.api_result_data
|
|
end
|
|
end |