From 1a4dbef6784b009250e8b8974f909a51d66d3797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Tue, 27 May 2025 18:03:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E5=8F=AF=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/controller/Agent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/agent/controller/Agent.php b/app/agent/controller/Agent.php index dc0f752..a679e14 100644 --- a/app/agent/controller/Agent.php +++ b/app/agent/controller/Agent.php @@ -24,8 +24,9 @@ class Agent extends Controller } $where = []; if(!empty($_GET['keyWord'])){ - $where = 'username = '.$_GET['keyWord'].' OR phone='.$_GET['keyWord']; + $where = "username ='".$_GET['keyWord']."' OR phone='".$_GET['keyWord']."'"; } + $agent_user_model = new AgentUser; $user_model = new UserModel; $order_model = new ProductOrderModel;