作者 lyh

gx

... ... @@ -42,4 +42,15 @@ class MonthCountController extends BaseController
$lists = $monthCountLogic->getIpPvCount();
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :获取关键字解锁
* @name :getKeyword
* @author :lyh
* @method :post
* @time :2023/7/4 9:58
*/
public function getKeyword(){
}
}
... ...
... ... @@ -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)
... ...