From 41db2e263d1c4871f7d5b569139f4c1c4744535f Mon Sep 17 00:00:00 2001 From: xiaodong Date: Thu, 3 Sep 2026 10:29:11 +0800 Subject: [PATCH] =?UTF-8?q?search=E6=90=9C=E7=B4=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/frontend/SearchController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/frontend/SearchController.php b/app/controller/frontend/SearchController.php index f7f7290..061657c 100644 --- a/app/controller/frontend/SearchController.php +++ b/app/controller/frontend/SearchController.php @@ -45,7 +45,9 @@ class SearchController extends BaseController // 获取可以查询的栏目 $category = new Category(); - $categories = $category -> getAllCustomArrayData(['is_search' => 1],'id desc','id')['data']; + // $categories = $category -> getAllCustomArrayData(['is_search' => 1],'id desc','id')['data']; + // status: 1 正常 2 禁用 + $categories = $category -> getAllCustomArrayData(['status' => 1],'id desc','id')['data']; $cateIds = array_column($categories,'id'); $cateSub = new CategorySubContent();