|
|
|
@ -12,12 +12,13 @@ namespace :sync do
|
|
|
|
|
created_on = User.where(id: user_action).maximum(:created_on)
|
|
|
|
|
|
|
|
|
|
# 即代理之前注册
|
|
|
|
|
|
|
|
|
|
if created_on < ua.created_at
|
|
|
|
|
params = params.merge(:register_status => 1)
|
|
|
|
|
else
|
|
|
|
|
# 代理之后注册的
|
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
|
if created_on.present?
|
|
|
|
|
if created_on < ua.created_at
|
|
|
|
|
params = params.merge(:register_status => 1)
|
|
|
|
|
else
|
|
|
|
|
# 代理之后注册的
|
|
|
|
|
params = params.merge(:register_status => 2)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|