正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -116,6 +116,7 @@ class MonthCountLogic extends BaseLogic | @@ -116,6 +116,7 @@ class MonthCountLogic extends BaseLogic | ||
| 116 | */ | 116 | */ |
| 117 | public function sourceCount(&$arr,$startTime,$endTime,$domain){ | 117 | public function sourceCount(&$arr,$startTime,$endTime,$domain){ |
| 118 | //访问来源前10 | 118 | //访问来源前10 |
| 119 | + $domain = 'http://lxl.petuu.shop/'; | ||
| 119 | $source = DB::table('gl_customer_visit') | 120 | $source = DB::table('gl_customer_visit') |
| 120 | ->select('referrer_url', DB::raw('COUNT(*) as count')) | 121 | ->select('referrer_url', DB::raw('COUNT(*) as count')) |
| 121 | ->groupBy('referrer_url')->where(['domain'=>$domain]) | 122 | ->groupBy('referrer_url')->where(['domain'=>$domain]) |
-
请 注册 或 登录 后发表评论