fixed 后台查询打榜分和历史显示

This commit is contained in:
xxq250 2025-07-31 16:40:15 +08:00
parent 09eb876ca0
commit 1e9b2de7e7
1 changed files with 0 additions and 1 deletions

View File

@ -139,7 +139,6 @@ class CompetitionUser < ApplicationRecord
end
def stage_max_score_data(stage)
{} if stage_api_status(stage) != 3
api_result = self.competition_user_scores.where(stage: stage.to_i).order(score: :desc).first&.api_result
{} if api_result.blank?
data = JSON.parse api_result