正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -164,6 +164,7 @@ class CountLogic extends BaseLogic | @@ -164,6 +164,7 @@ class CountLogic extends BaseLogic | ||
| 164 | $data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) | 164 | $data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) |
| 165 | ->groupBy('country')->where(['domain'=>$this->user['domain']]) | 165 | ->groupBy('country')->where(['domain'=>$this->user['domain']]) |
| 166 | ->orderBy('ip','desc')->limit(10)->get()->toArray(); | 166 | ->orderBy('ip','desc')->limit(10)->get()->toArray(); |
| 167 | + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND); | ||
| 167 | if(!empty($data)){ | 168 | if(!empty($data)){ |
| 168 | foreach ($data as $k => $v){ | 169 | foreach ($data as $k => $v){ |
| 169 | $v['pv'] = (int)$v['pv']; | 170 | $v['pv'] = (int)$v['pv']; |
-
请 注册 或 登录 后发表评论