|
...
|
...
|
@@ -139,6 +139,8 @@ class CountLogic extends BaseLogic |
|
|
|
$data = $customerVisitModel->select('referrer_url', DB::raw('COUNT(*) as count'))
|
|
|
|
->groupBy('referrer_url')->where(['domain'=>$this->user['domain']])
|
|
|
|
->orderByDesc('count')->limit(8)->get()->toArray();
|
|
|
|
var_dump($data);
|
|
|
|
die();
|
|
|
|
$total = $customerVisitModel->count();
|
|
|
|
if(!empty($data)){
|
|
|
|
$data = object_to_array($data);
|
|
...
|
...
|
@@ -160,8 +162,6 @@ class CountLogic extends BaseLogic |
|
|
|
$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();
|
|
|
|
var_dump($data);
|
|
|
|
die();
|
|
|
|
if(!empty($data)){
|
|
|
|
$data = object_to_array($data);
|
|
|
|
foreach ($data as $k => $v){
|
...
|
...
|
|