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