From 42295647bbdcd57d8f198808d2330a1e50a85fbb Mon Sep 17 00:00:00 2001 From: tk Date: Wed, 31 Jul 2024 13:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afeat=20=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E5=8A=9F=E8=83=BD=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0?= =?UTF-8?q?=E3=80=91=EF=BC=9A=E5=A2=9E=E5=8A=A0by=5Fplane=5Fid=E5=AD=97?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=90=9C=E7=B4=A2=20=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=A3=9E=E6=9C=BAid=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B?= =?UTF-8?q?=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91?= =?UTF-8?q?=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FlyCube/MpApi/Controller/AdminController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/FlyCube/MpApi/Controller/AdminController.class.php b/FlyCube/MpApi/Controller/AdminController.class.php index 54bad9c..ff6bac9 100644 --- a/FlyCube/MpApi/Controller/AdminController.class.php +++ b/FlyCube/MpApi/Controller/AdminController.class.php @@ -780,11 +780,18 @@ class AdminController extends PublicController 'name' => 'receiver', 'tel' => 'tel', 'remark' => 'remark', + 'byPlaneId' => 'by_plane_id', 'desc' => 'describe' ]; if (array_key_exists($field, $fieldMap) && !empty($value)) { - $where[$fieldMap[$field]] = array('like', '%' . $value . '%'); + if ($field === 'byPlaneId') { + // 对于 byPlaneId 字段,使用精确匹配 + $where[$fieldMap[$field]] = $value; + } else { + // 对于其他字段,使用模糊查询 + $where[$fieldMap[$field]] = array('like', '%' . $value . '%'); + } } } }