From 57e4e178c87e47227cdbd51b33c2a01f89aa49dd Mon Sep 17 00:00:00 2001 From: liangyuyan <1103300295@qq.com> Date: Wed, 19 Aug 2020 11:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=BB=9F=E8=AE=A1--=E4=BF=AE=E6=94=B9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/StoreUserReportController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Admin/Controllers/StoreUserReportController.php b/app/Admin/Controllers/StoreUserReportController.php index 1cd4711..5b48cd5 100644 --- a/app/Admin/Controllers/StoreUserReportController.php +++ b/app/Admin/Controllers/StoreUserReportController.php @@ -48,10 +48,10 @@ class StoreUserReportController extends AdminController $start = $this->input['start'] ?? null; $end = $this->input['end'] ?? null; if ($start !== null) { - $q->whereRaw('add_time >= UNIX_TIMESTAMP(?)',$start); + $q->whereRaw('time >= ?',$start); } if ($end !== null) { - $q->whereRaw('add_time <= UNIX_TIMESTAMP(?)',$end); + $q->whereRaw('time <= ?',$end); } })->datetime(); });