用户为空

dev_aliyun
daiao 5 years ago
parent e8d8559589
commit 8788e8c11b

@ -4389,6 +4389,7 @@ end
user_agents = UserAgent.where("user_agents.key is not null").pluck(:key).uniq user_agents = UserAgent.where("user_agents.key is not null").pluck(:key).uniq
user_agents.each_with_index do |agent, index| user_agents.each_with_index do |agent, index|
user = User.find_by_login(agent) user = User.find_by_login(agent)
logger.info("###########user:#{agent}") if user.blank?
# 代理用户 # 代理用户
agents = UserAgent.where(key: agent) agents = UserAgent.where(key: agent)
agents_count = agents.count agents_count = agents.count

Loading…
Cancel
Save