作者 lyh

gx

@@ -164,7 +164,6 @@ class CountLogic extends BaseLogic @@ -164,7 +164,6 @@ 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') 165 ->groupBy('country')
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);  
168 if(!empty($data)){ 167 if(!empty($data)){
169 foreach ($data as $k => $v){ 168 foreach ($data as $k => $v){
170 $v['pv'] = (int)$v['pv']; 169 $v['pv'] = (int)$v['pv'];