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 = [];