|
@@ -160,6 +160,8 @@ class CountLogic extends BaseLogic |
|
@@ -160,6 +160,8 @@ class CountLogic extends BaseLogic |
|
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();
|
|
|
|
163
|
+ var_dump($data);
|
|
|
|
164
|
+ die();
|
|
163
|
if(!empty($data)){
|
165
|
if(!empty($data)){
|
|
164
|
$data = object_to_array($data);
|
166
|
$data = object_to_array($data);
|
|
165
|
foreach ($data as $k => $v){
|
167
|
foreach ($data as $k => $v){
|