正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -154,8 +154,8 @@ class ComController extends BaseController | @@ -154,8 +154,8 @@ class ComController extends BaseController | ||
| 154 | $data = DB::table('gl_customer_visit') | 154 | $data = DB::table('gl_customer_visit') |
| 155 | ->select('referrer_url', DB::raw('COUNT(*) as count')) | 155 | ->select('referrer_url', DB::raw('COUNT(*) as count')) |
| 156 | ->groupBy('referrer_url')->where(['domain'=>'http://lxl.petuu.shop/']) | 156 | ->groupBy('referrer_url')->where(['domain'=>'http://lxl.petuu.shop/']) |
| 157 | - ->where('updated_date','>=',$startTime->toDateString()) | ||
| 158 | - ->where('updated_date','<=',$endTime->toDateString()) | 157 | + ->where('updated_date','>=',$startTime) |
| 158 | + ->where('updated_date','<=',$endTime) | ||
| 159 | ->orderByDesc('count')->limit(8)->get()->toArray(); | 159 | ->orderByDesc('count')->limit(8)->get()->toArray(); |
| 160 | return json_encode($data); | 160 | return json_encode($data); |
| 161 | } | 161 | } |
-
请 注册 或 登录 后发表评论