diff --git a/Access.php b/Access.php index eed6bcb..1f4da56 100644 --- a/Access.php +++ b/Access.php @@ -228,8 +228,8 @@ class Access_Extend protected function parseReferer() { - $this->referer['url'] = $this->db->fetchAll("SELECT DISTINCT referer, COUNT(*) as count FROM {$this->table} GROUP BY referer ORDER BY count DESC LIMIT {$this->pageSize}"); - $this->referer['domain'] = $this->db->fetchAll("SELECT DISTINCT referer_domain, COUNT(*) as count FROM {$this->table} GROUP BY referer_domain ORDER BY count DESC LIMIT {$this->pageSize}"); + $this->referer['url'] = $this->db->fetchAll("SELECT DISTINCT referer, COUNT(*) as count FROM {$this->table} WHERE referer <> '' GROUP BY referer ORDER BY count DESC LIMIT {$this->pageSize}"); + $this->referer['domain'] = $this->db->fetchAll("SELECT DISTINCT referer_domain, COUNT(*) as count FROM {$this->table} WHERE referer_domain <> '' GROUP BY referer_domain ORDER BY count DESC LIMIT {$this->pageSize}"); } protected function parseOverview() diff --git a/README.md b/README.md index a7167f6..a3a1c00 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ ### 功能简介/更新说明 * 查看IP/UV/PV -* ip归属地使用ipip.net +* ip归属地使用淘宝API * 管理员登录时不记录日志 +* 查看来源页和来源域名排名 ### 使用须知