diff --git a/lib/tasks/user_agent.rake b/lib/tasks/user_agent.rake index f3f4dd23..c240a66f 100644 --- a/lib/tasks/user_agent.rake +++ b/lib/tasks/user_agent.rake @@ -24,7 +24,7 @@ namespace :sync do team_member = TeamMember.find_by_user_id(user_action.try(:user_id)) if team_member # 即代理之前报名的 - if team_member.created_on < ua.created_at + if team_member.created_at < ua.created_at params = params.merge(:action_status => 1) else # 代理之后报名的