From 0e2f30b557f190c3f74e41b6265d31a93d621c41 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 20 Oct 2023 18:46:58 +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/controller/api/Statistics.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controller/api/Statistics.php b/app/controller/api/Statistics.php index 0e21e1f0..f3eeb410 100644 --- a/app/controller/api/Statistics.php +++ b/app/controller/api/Statistics.php @@ -198,6 +198,10 @@ class Statistics extends BaseController return app('json')->fail('responsible_area:格式错误'); } $merchant=Db::name('merchant')->where('street_id','in',$area)->select(); + if(!$merchant){ + return app('json')->fail('responsible_area:格式错误'); + + } $where[]=['p.create_time','between time',[date("Y-m-d H:i:s",$parmas['start_time']),date("Y-m-d H:i:s",$parmas['end_time'])]]; $where[] = ['p.product_id','in',explode(',', $parmas['goods_id'])]; $where[] = ['p.is_refund','=',0];