dev_local_lzdx
daiao 5 years ago
parent 2c14a07989
commit 2a7a98a2d9

@ -22,7 +22,7 @@ namespace :sync do
end
# 用户报名情况
created_at = TeamMember.where(user_id: user_action.try(:user_id)).maximum(:created_at)
created_at = TeamMember.where(user_id: user_action).maximum(:created_at)
if created_at
# 即代理之前报名的
if created_at < ua.created_at

Loading…
Cancel
Save