From ed11e38fde0b56b9091af94e4851889d25dc4675 Mon Sep 17 00:00:00 2001 From: fengcheche <925838486@qq.com> Date: Wed, 30 Jun 2021 12:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=97=B6=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=A2=9E=E5=8A=A0=E9=92=A9=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/SearchService.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/service/SearchService.php b/application/service/SearchService.php index faf241e49..8704ffccd 100755 --- a/application/service/SearchService.php +++ b/application/service/SearchService.php @@ -463,6 +463,15 @@ class SearchService public static function GoodsCategoryList($params = []) { $data = []; + + // 查询分类条件处理钩子 + $hook_name = 'plugins_service_search_category_list_where'; + Hook::listen($hook_name, [ + 'hook_name' => $hook_name, + 'is_backend' => true, + 'params' => &$params, + ]); + if(MyC('home_search_is_category', 0) == 1) { $pid = empty($params['category_id']) ? 0 : intval($params['category_id']);