From 2fef34b1a229973d26608673cc74d86cfc9eb451 Mon Sep 17 00:00:00 2001 From: "phpup@126.com" Date: Fri, 24 Feb 2023 08:41:57 +0000 Subject: [PATCH] =?UTF-8?q?update=20server/app/common/lists/BaseDataLists.?= =?UTF-8?q?php.=20php=208.1=E4=BB=A5=E4=B8=8A=E7=89=88=E6=9C=AC=EF=BC=8Cst?= =?UTF-8?q?rtotime(null)=20=E5=8F=82=E6=95=B0null=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: phpup@126.com --- server/app/common/lists/BaseDataLists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/common/lists/BaseDataLists.php b/server/app/common/lists/BaseDataLists.php index bebf81c2e..b7521fe12 100644 --- a/server/app/common/lists/BaseDataLists.php +++ b/server/app/common/lists/BaseDataLists.php @@ -119,9 +119,9 @@ abstract class BaseDataLists implements ListsInterface if (!($this instanceof ListsSearchInterface)) { return []; } - $startTime = $this->request->get('start_time'); + $startTime = $this->request->get('start_time')??0; $this->startTime = strtotime($startTime); - $endTime = $this->request->get('end_time'); + $endTime = $this->request->get('end_time')??0; $this->endTime = strtotime($endTime); $this->start = $this->request->get('start'); -- Gitee