From 430e66ac001d1c75931bb6874207650f27f04daa Mon Sep 17 00:00:00 2001 From: "HESU\\HESU" <1696136552@qq.com> Date: Wed, 19 Mar 2025 12:53:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/CustomerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/CustomerController.php b/app/controller/CustomerController.php index e345b77..a030cc4 100644 --- a/app/controller/CustomerController.php +++ b/app/controller/CustomerController.php @@ -267,7 +267,7 @@ class CustomerController } $userId = $request->user['id']; $id = Util::getParam($request, 'id'); - $where = ['user_id', '=', $userId]; + $where[] = ['user_id', '=', $userId]; $where[] = ['created_at', '>', strtotime($created.'-01')]; $customer = Customer::where($where)->count(); $whereVisit = $where;