作者 lyh

gx

@@ -149,7 +149,7 @@ class ComController extends BaseController @@ -149,7 +149,7 @@ class ComController extends BaseController
149 public function ceshi(){ 149 public function ceshi(){
150 $data = DB::table('gl_customer_visit') 150 $data = DB::table('gl_customer_visit')
151 ->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv')) 151 ->select('country',DB::raw('COUNT(*) as ip'),DB::raw('SUM(depth) as pv'))
152 - ->groupBy('country')->where(['domain'=>$this->project['deploy_build']['test_domain']]) 152 + ->groupBy('country')->where(['domain'=>'http://lxl.petuu.shop/'])
153 ->orderBy('ip','desc')->limit(10)->get()->toArray(); 153 ->orderBy('ip','desc')->limit(10)->get()->toArray();
154 return $data; 154 return $data;
155 } 155 }
@@ -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'=>'http://lxl.petuu.shop/']) 155 + ->groupBy('country')->where(['domain'=>$this->project['deploy_build']['test_domain']])
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);