From 50173c6ffce9803246741223e4ce4b36acf51926 Mon Sep 17 00:00:00 2001 From: suyi Date: Tue, 5 Nov 2024 17:20:46 +0800 Subject: [PATCH] bug --- server/app/common/lists/BaseDataLists.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/app/common/lists/BaseDataLists.php b/server/app/common/lists/BaseDataLists.php index 06c813b..dfaa3f2 100644 --- a/server/app/common/lists/BaseDataLists.php +++ b/server/app/common/lists/BaseDataLists.php @@ -101,9 +101,13 @@ abstract class BaseDataLists implements ListsInterface return []; } $startTime = $this->request->get('start_time'); - $this->startTime = strtotime($startTime); + if ($startTime){ + $this->startTime = strtotime($startTime); + } $endTime = $this->request->get('end_time'); - $this->endTime = strtotime($endTime); + if ($endTime){ + $this->endTime = strtotime($endTime); + } $this->start = $this->request->get('start'); $this->end = $this->request->get('end'); -- Gitee