|
...
|
...
|
@@ -138,7 +138,7 @@ class InquiryMonthlyCount extends Command |
|
|
|
->orderBy('ip','desc')->limit(15)->get()->toArray();
|
|
|
|
$arr['source_country'] = json_encode($source_country);
|
|
|
|
//受访界面前15
|
|
|
|
$referrer_url = DB::table('gl_customer_visit_item')
|
|
|
|
$referrer_url = DB::table('gl_customer_visit')
|
|
|
|
->select('url',DB::raw('COUNT(*) as num'))
|
|
|
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
|
|
->where('updated_date','>=',$startTime->toDateString())
|
|
...
|
...
|
@@ -147,7 +147,7 @@ class InquiryMonthlyCount extends Command |
|
|
|
->limit(15)->get()->toArray();
|
|
|
|
$arr['referrer_url'] = json_encode($referrer_url);
|
|
|
|
//访问端口
|
|
|
|
$referrer_port = DB::table('gl_customer_visit_item')
|
|
|
|
$referrer_port = DB::table('gl_customer_visit')
|
|
|
|
->select('device_port',DB::raw('COUNT(*) as num'))
|
|
|
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
|
|
->where('updated_date','>=',$startTime->toDateString())
|
...
|
...
|
|