作者 lyh

gx

... ... @@ -164,7 +164,6 @@ class CountLogic extends BaseLogic
$data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv'))
->groupBy('country')
->orderBy('ip','desc')->limit(10)->get()->toArray();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
if(!empty($data)){
foreach ($data as $k => $v){
$v['pv'] = (int)$v['pv'];
... ...