From e1abe849a0c08c12818f4180b4a5a62fde4a87da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Wed, 17 Dec 2025 15:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/adminapi/controller/v1/statistic/FlowStatistic.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php b/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php index b6094e392..ff86572e3 100644 --- a/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php +++ b/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php @@ -68,6 +68,12 @@ class FlowStatistic extends AuthController ['type', 'day'], ['time', ''] ]); + + // 当$where['time']不为空,且格式不是2025/12/01-2025/12/15时,重置$where['time']为空 + if ($where['time'] != '' && !preg_match('/^\d{4}\/\d{2}\/\d{2}-\d{4}\/\d{2}\/\d{2}$/', $where['time'])) { + $where['time'] = ''; + } + $data = $this->services->getFlowRecord($where); return app('json')->success($data); }