代理信息恒信

dev_local_lzdx
daiao 4 years ago
parent 2a7a98a2d9
commit aec65c6284

@ -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

Loading…
Cancel
Save