|
...
|
...
|
@@ -102,8 +102,9 @@ class MonthCountLogic extends BaseLogic |
|
|
|
->first();
|
|
|
|
$arr['pv'] = $pv_ip->pv_num;
|
|
|
|
$arr['ip'] = $pv_ip->ip_num;
|
|
|
|
$arr['rate'] = 0;
|
|
|
|
if($arr['ip'] != 0){
|
|
|
|
$arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 10,2);
|
|
|
|
$arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 100,2);
|
|
|
|
}
|
|
|
|
return $arr;
|
|
|
|
}
|
|
...
|
...
|
@@ -134,7 +135,7 @@ class MonthCountLogic extends BaseLogic |
|
|
|
->orderBy('ip','desc')->limit(15)->get()->toArray();
|
|
|
|
$arr['source_country'] = $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)
|
|
...
|
...
|
@@ -143,7 +144,7 @@ class MonthCountLogic extends BaseLogic |
|
|
|
->limit(15)->get()->toArray();
|
|
|
|
$arr['referrer_url'] = $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)
|
...
|
...
|
|