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();