From cb0e89f74dc561cfafeac74b1667da8a2ae2f732 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 4 Aug 2023 14:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/AccountLogLists.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api/lists/AccountLogLists.php b/app/api/lists/AccountLogLists.php index 28711b13e..d74164e6a 100755 --- a/app/api/lists/AccountLogLists.php +++ b/app/api/lists/AccountLogLists.php @@ -114,11 +114,13 @@ class AccountLogLists extends BaseApiDataLists $startTime = $date - 3600; // 获取该日期零点的时间戳 $endTime = $date + 86400; // 获取该日期24小时后的时间戳 $where[] = ['create_time', 'between time', [$startTime, $endTime]]; + }else{ + $where[] = ['create_time', 'between time', [strtotime(date('Y-m-d')), strtotime(date('Y-m-d'))+86400]]; } $lists = UserAccountLog::field($field) ->where($where) ->with(['userInfo']) - ->whereDay('create_time') + // ->whereDay('create_time') ->order('id', 'desc') ->limit($this->limitOffset, $this->limitLength) ->select()