|
@@ -102,8 +102,9 @@ class MonthCountLogic extends BaseLogic |
|
@@ -102,8 +102,9 @@ class MonthCountLogic extends BaseLogic |
|
102
|
->first();
|
102
|
->first();
|
|
103
|
$arr['pv'] = $pv_ip->pv_num;
|
103
|
$arr['pv'] = $pv_ip->pv_num;
|
|
104
|
$arr['ip'] = $pv_ip->ip_num;
|
104
|
$arr['ip'] = $pv_ip->ip_num;
|
|
|
|
105
|
+ $arr['rate'] = 0;
|
|
105
|
if($arr['ip'] != 0){
|
106
|
if($arr['ip'] != 0){
|
|
106
|
- $arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 10,2);
|
107
|
+ $arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 100,2);
|
|
107
|
}
|
108
|
}
|
|
108
|
return $arr;
|
109
|
return $arr;
|
|
109
|
}
|
110
|
}
|
|
@@ -134,7 +135,7 @@ class MonthCountLogic extends BaseLogic |
|
@@ -134,7 +135,7 @@ class MonthCountLogic extends BaseLogic |
|
134
|
->orderBy('ip','desc')->limit(15)->get()->toArray();
|
135
|
->orderBy('ip','desc')->limit(15)->get()->toArray();
|
|
135
|
$arr['source_country'] = $source_country;
|
136
|
$arr['source_country'] = $source_country;
|
|
136
|
//受访界面前15
|
137
|
//受访界面前15
|
|
137
|
- $referrer_url = DB::table('gl_customer_visit_item')
|
138
|
+ $referrer_url = DB::table('gl_customer_visit')
|
|
138
|
->select('url',DB::raw('COUNT(*) as num'))
|
139
|
->select('url',DB::raw('COUNT(*) as num'))
|
|
139
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
140
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
140
|
// ->where('updated_date','>=',$startTime)
|
141
|
// ->where('updated_date','>=',$startTime)
|
|
@@ -143,7 +144,7 @@ class MonthCountLogic extends BaseLogic |
|
@@ -143,7 +144,7 @@ class MonthCountLogic extends BaseLogic |
|
143
|
->limit(15)->get()->toArray();
|
144
|
->limit(15)->get()->toArray();
|
|
144
|
$arr['referrer_url'] = $referrer_url;
|
145
|
$arr['referrer_url'] = $referrer_url;
|
|
145
|
//访问断后
|
146
|
//访问断后
|
|
146
|
- $referrer_port = DB::table('gl_customer_visit_item')
|
147
|
+ $referrer_port = DB::table('gl_customer_visit')
|
|
147
|
->select('device_port',DB::raw('COUNT(*) as num'))
|
148
|
->select('device_port',DB::raw('COUNT(*) as num'))
|
|
148
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
149
|
->orderBy('num','desc')->where(['domain'=>$domain])
|
|
149
|
// ->where('updated_date','>=',$startTime)
|
150
|
// ->where('updated_date','>=',$startTime)
|