From 7dd4b9316102157e498fe9f44ebec639b93d2976 Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Fri, 17 Sep 2021 16:07:06 +0800 Subject: [PATCH] edit-liche-stat --- api/controllers/wxapp/licheb/Statistics.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/controllers/wxapp/licheb/Statistics.php b/api/controllers/wxapp/licheb/Statistics.php index 5e70dd33..6c2b9f1e 100644 --- a/api/controllers/wxapp/licheb/Statistics.php +++ b/api/controllers/wxapp/licheb/Statistics.php @@ -206,8 +206,8 @@ class Statistics extends Wxapp{ ]; $admin_id && $where['admin_id'] = $admin_id; if($day){ - $s_time = date('Y-m-01 00:00:00',strtotime($day)); - $e_time = date('Y-m-t 23:59:59',strtotime($day)); + $s_time = date('Y-m-d 00:00:00',strtotime($day)); + $e_time = date('Y-m-d 23:59:59',strtotime($day)); $where['c_time>='] = strtotime($s_time); $where['c_time<='] = strtotime($e_time); } @@ -344,8 +344,8 @@ class Statistics extends Wxapp{ 'biz_id' => $biz_id ]; if($day){ - $s_time = date('Y-m-01 00:00:00',strtotime($day)); - $e_time = date('Y-m-t 23:59:59',strtotime($day)); + $s_time = date('Y-m-d 00:00:00',strtotime($day)); + $e_time = date('Y-m-d 23:59:59',strtotime($day)); $where['c_time>='] = strtotime($s_time); $where['c_time<='] = strtotime($e_time); }