作者 lyh

gx

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