|
...
|
...
|
@@ -17,7 +17,7 @@ class InquiryMonthlyCount extends Command |
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $signature = 'yesterday_count';
|
|
|
|
protected $signature = 'month_count';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
...
|
...
|
@@ -140,18 +140,18 @@ class InquiryMonthlyCount extends Command |
|
|
|
//受访界面前15
|
|
|
|
$arr['referrer_url'] = DB::table('gl_customer_visit_item')
|
|
|
|
->select('url',DB::raw('COUNT(*) as num'))
|
|
|
|
->orderBy('num','desc')
|
|
|
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
|
|
->where('updated_date','>=',$startTime->toDateString())
|
|
|
|
->where('updated_date','<=',$endTime->toDateString())
|
|
|
|
->groupBy('url')->where(['domain'=>'http://lxl.petuu.shop/'])
|
|
|
|
->groupBy('url')
|
|
|
|
->limit(15)->get()->toArray();
|
|
|
|
//访问断后
|
|
|
|
$arr['referrer_url'] = DB::table('gl_customer_visit_item')
|
|
|
|
$arr['referrer_port'] = DB::table('gl_customer_visit_item')
|
|
|
|
->select('device_port',DB::raw('COUNT(*) as num'))
|
|
|
|
->orderBy('num','desc')
|
|
|
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
|
|
->where('updated_date','>=',$startTime->toDateString())
|
|
|
|
->where('updated_date','<=',$endTime->toDateString())
|
|
|
|
->groupBy('url')->where(['domain'=>'http://lxl.petuu.shop/'])
|
|
|
|
->groupBy('device_port')
|
|
|
|
->limit(15)->get()->toArray();
|
|
|
|
return $arr;
|
|
|
|
}
|
...
|
...
|
|