|
|
@ -12,12 +12,13 @@ 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
|
|
|
|
# 代理之后注册的
|
|
|
|
# 代理之后注册的
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|