引流参赛人数不对

dev_aliyun
daiao 5 years ago
parent 4c8e1917ab
commit a09ef2965d

@ -4393,7 +4393,7 @@ end
# 代理用户 # 代理用户
agents = UserAgent.where(key: agent) agents = UserAgent.where(key: agent)
agents_count = agents.count 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 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 team_ids = TeamMember.where(user_id: rank_user_id).pluck(:competition_team_id).uniq
sheet1[count_row, 0] = index + 1 sheet1[count_row, 0] = index + 1

Loading…
Cancel
Save