作者 lyh

gx

... ... @@ -154,8 +154,8 @@ class ComController extends BaseController
$data = DB::table('gl_customer_visit')
->select('referrer_url', DB::raw('COUNT(*) as count'))
->groupBy('referrer_url')->where(['domain'=>'http://lxl.petuu.shop/'])
->where('updated_date','>=',$startTime->toDateString())
->where('updated_date','<=',$endTime->toDateString())
->where('updated_date','>=',$startTime)
->where('updated_date','<=',$endTime)
->orderByDesc('count')->limit(8)->get()->toArray();
return json_encode($data);
}
... ...