正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -139,6 +139,8 @@ class CountLogic extends BaseLogic | @@ -139,6 +139,8 @@ class CountLogic extends BaseLogic | ||
| 139 | $data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count')) | 139 | $data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count')) |
| 140 | ->groupBy('referrer_url')->where(['domain'=>$this->user['domain']]) | 140 | ->groupBy('referrer_url')->where(['domain'=>$this->user['domain']]) |
| 141 | ->orderByDesc('count')->limit(8)->get()->toArray(); | 141 | ->orderByDesc('count')->limit(8)->get()->toArray(); |
| 142 | + var_dump($data); | ||
| 143 | + die(); | ||
| 142 | $total = $customerVisitModel->count(); | 144 | $total = $customerVisitModel->count(); |
| 143 | if(!empty($data)){ | 145 | if(!empty($data)){ |
| 144 | $data = object_to_array($data); | 146 | $data = object_to_array($data); |
| @@ -160,8 +162,6 @@ class CountLogic extends BaseLogic | @@ -160,8 +162,6 @@ class CountLogic extends BaseLogic | ||
| 160 | $data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) | 162 | $data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) |
| 161 | ->groupBy('country')->where(['domain'=>$this->user['domain']]) | 163 | ->groupBy('country')->where(['domain'=>$this->user['domain']]) |
| 162 | ->orderBy('ip','desc')->limit(10)->get()->toArray(); | 164 | ->orderBy('ip','desc')->limit(10)->get()->toArray(); |
| 163 | - var_dump($data); | ||
| 164 | - die(); | ||
| 165 | if(!empty($data)){ | 165 | if(!empty($data)){ |
| 166 | $data = object_to_array($data); | 166 | $data = object_to_array($data); |
| 167 | foreach ($data as $k => $v){ | 167 | foreach ($data as $k => $v){ |
-
请 注册 或 登录 后发表评论