From 09eb876ca08f10c85e6dcce37450ede94ab8e69a Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 31 Jul 2025 16:33:17 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E5=90=8E=E5=8F=B0=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=89=93=E6=A6=9C=E5=88=86=E5=92=8C=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/competition_infos/enroll_list.json.jbuilder | 2 +- app/views/competition_infos/ranking_list.json.jbuilder | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/competition_infos/enroll_list.json.jbuilder b/app/views/competition_infos/enroll_list.json.jbuilder index 76474e5c4..aefb9faea 100644 --- a/app/views/competition_infos/enroll_list.json.jbuilder +++ b/app/views/competition_infos/enroll_list.json.jbuilder @@ -12,7 +12,7 @@ json.data do json.apply_status c_user&.apply_status 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_json c_user.stage_max_score_data["data"].present? ? c_user.stage_max_score_data["data"] : c_user.api_result_data + 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 json.history_scores c_user.competition_user_scores do |user_score| json.score user_score.api_result end diff --git a/app/views/competition_infos/ranking_list.json.jbuilder b/app/views/competition_infos/ranking_list.json.jbuilder index 94385ae2d..bd7b0afb5 100644 --- a/app/views/competition_infos/ranking_list.json.jbuilder +++ b/app/views/competition_infos/ranking_list.json.jbuilder @@ -11,6 +11,6 @@ json.data do 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 c_user.stage_max_score_data["data"].present? ? c_user.stage_max_score_data["data"] : c_user.api_result_data + 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 \ No newline at end of file