正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -147,7 +147,7 @@ class CountLogic extends BaseLogic | @@ -147,7 +147,7 @@ class CountLogic extends BaseLogic | ||
| 147 | public function referrer_count(){ | 147 | public function referrer_count(){ |
| 148 | $customerVisitModel = new Visit(); | 148 | $customerVisitModel = new Visit(); |
| 149 | $data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count')) | 149 | $data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count')) |
| 150 | - ->groupBy('referrer_url')->where(['domain'=>trim(str_replace('https://','',$this->user['domain']),'/')]); | 150 | + ->groupBy('referrer_url')->where(['domain'=>trim(str_replace('https://','',$this->user['domain']),'/')]) |
| 151 | ->orderByDesc('count')->limit(9)->get()->toArray(); | 151 | ->orderByDesc('count')->limit(9)->get()->toArray(); |
| 152 | $total = $customerVisitModel->count(); | 152 | $total = $customerVisitModel->count(); |
| 153 | if(!empty($data)){ | 153 | if(!empty($data)){ |
-
请 注册 或 登录 后发表评论