From 3dd394f5377020fb0626178156c87c4de235f379 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 11 Jun 2024 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(CateLists.php):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=8F=82=E6=95=B0=E5=90=8D=E4=BB=8E=20leve?= =?UTF-8?q?=20=E5=88=B0=20level?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/lists/cate/CateLists.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/lists/cate/CateLists.php b/app/api/lists/cate/CateLists.php index e79f1c98f..87a8fb73c 100644 --- a/app/api/lists/cate/CateLists.php +++ b/app/api/lists/cate/CateLists.php @@ -43,8 +43,8 @@ class CateLists extends BaseAdminDataLists implements ListsSearchInterface */ public function lists(): array { - $leve = Request()->get('leve', 1); - $this->searchWhere[] = ['leve', '=', $leve]; + $level = Request()->get('level', 1); + $this->searchWhere[] = ['level', '=', $level]; $this->searchWhere[] = ['count', '>', 0]; $cate_arr = Db::name('store_product_cate')->where($this->searchWhere)->column('cate_id'); $lists = [];