|
...
|
...
|
@@ -135,7 +135,7 @@ class CountLogic extends BaseLogic |
|
|
|
* @time :2023/5/24 15:32
|
|
|
|
*/
|
|
|
|
public function referrer_count(){
|
|
|
|
$customerVisitModel = new CustomerVisit();
|
|
|
|
$customerVisitModel = new Visit();
|
|
|
|
$data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count'))
|
|
|
|
->groupBy('referrer_url')->where(['domain'=>$this->user['domain']])
|
|
|
|
->orderByDesc('count')->limit(8)->get()->toArray();
|
|
...
|
...
|
@@ -156,7 +156,7 @@ class CountLogic extends BaseLogic |
|
|
|
* @time :2023/5/24 15:56
|
|
|
|
*/
|
|
|
|
public function access_country_count(){
|
|
|
|
$customerVisitModel = new CustomerVisit();
|
|
|
|
$customerVisitModel = new Visit();
|
|
|
|
$data = $customerVisitModel->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv'))
|
|
|
|
->groupBy('country')->where(['domain'=>$this->user['domain']])
|
|
|
|
->orderBy('ip','desc')->limit(10)->get()->toArray();
|
...
|
...
|
|