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 . '%'); + } } } }