引流500问题

dev_local_lzdx
daiao 5 years ago
parent b1a5b4c6df
commit 4b78170675

@ -30,7 +30,7 @@ class ManagementsController < ApplicationController
def user_agents def user_agents
@user_agents = UserAgent.joins("JOIN users u ON u.login = user_agents.key") @user_agents = UserAgent.joins("JOIN users u ON u.login = user_agents.key")
.where("user_agents.key is not null and is_delete = 0").order("created_at desc") .where("user_agents.key is not null and is_delete = 0 and users.login is not null").order("created_at desc")
@agents_count = @user_agents.count @agents_count = @user_agents.count
limit = 20 limit = 20
@agents_pages = Paginator.new @agents_count, limit, params['page'] || 1 @agents_pages = Paginator.new @agents_count, limit, params['page'] || 1

Loading…
Cancel
Save