作者 lyh

gx

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