作者 lyh

gx

@@ -131,7 +131,7 @@ class CountLogic extends BaseLogic @@ -131,7 +131,7 @@ class CountLogic extends BaseLogic
131 public function referrer_count(){ 131 public function referrer_count(){
132 $data = DB::table('gl_customer_visit') 132 $data = DB::table('gl_customer_visit')
133 ->select('referrer_url', DB::raw('COUNT(*) as count')) 133 ->select('referrer_url', DB::raw('COUNT(*) as count'))
134 - ->groupBy('referrer_url')->where(['domain'=>$this->project['deploy_build']['test_domain']]) 134 + ->groupBy('referrer_url')->where(['domain'=>'http://lxl.petuu.shop/'])
135 ->orderByDesc('count')->limit(8)->get()->toArray(); 135 ->orderByDesc('count')->limit(8)->get()->toArray();
136 $total = DB::table('gl_customer_visit')->count(); 136 $total = DB::table('gl_customer_visit')->count();
137 if(!empty($data)){ 137 if(!empty($data)){
@@ -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);