|
...
|
...
|
@@ -152,7 +152,7 @@ class CountLogic extends BaseLogic |
|
|
|
public function access_country_count(){
|
|
|
|
$data = DB::table('gl_customer_visit')
|
|
|
|
->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv'))
|
|
|
|
->groupBy('country')->where(['domain'=>$this->project['deploy_build']['test_domain']])
|
|
|
|
->groupBy('country')->where(['domain'=>'http://lxl.petuu.shop/'])
|
|
|
|
->orderBy('ip','desc')->limit(10)->get()->toArray();
|
|
|
|
if(!empty($data)){
|
|
|
|
$data = object_to_array($data);
|
...
|
...
|
|