diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index e83993c4..1c14e82e 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -4393,7 +4393,7 @@ end # 代理用户 agents = UserAgent.where(key: agent) agents_count = agents.count - competion_users = agents.where(agent_type: UserAgent::USER_COMPETITION).pluck(:ip) + competion_users = agents.where(action_status: 2).pluck(:ip) rank_user_id = UserActions.where(ip: competion_users).pluck(:user_id).uniq team_ids = TeamMember.where(user_id: rank_user_id).pluck(:competition_team_id).uniq sheet1[count_row, 0] = index + 1