|
...
|
...
|
@@ -160,6 +160,8 @@ 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){
|
...
|
...
|
|