|
|
@ -12,7 +12,7 @@ namespace :sync do
|
|
|
|
created_on = User.where(id: user_action).maximum(:created_on)
|
|
|
|
created_on = User.where(id: user_action).maximum(:created_on)
|
|
|
|
|
|
|
|
|
|
|
|
# 即代理之前注册
|
|
|
|
# 即代理之前注册
|
|
|
|
|
|
|
|
if created_on.present?
|
|
|
|
if created_on < ua.created_at
|
|
|
|
if created_on < ua.created_at
|
|
|
|
params = params.merge(:register_status => 1)
|
|
|
|
params = params.merge(:register_status => 1)
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -20,6 +20,7 @@ namespace :sync do
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# 用户报名情况
|
|
|
|
# 用户报名情况
|
|
|
|
created_at = TeamMember.where(user_id: user_action).maximum(:created_at)
|
|
|
|
created_at = TeamMember.where(user_id: user_action).maximum(:created_at)
|
|
|
|