diff --git a/app/api/model/Category.php b/app/api/model/Category.php index d0a93961..e07281d6 100644 --- a/app/api/model/Category.php +++ b/app/api/model/Category.php @@ -41,6 +41,8 @@ class Category extends CategoryModel */ public function getListPublic(array $param = []): array { + //添加店内分类 + $param['is_in_store'] = !empty($param['is_in_store']) ? $param['is_in_store'] : 0; return parent::getList(array_merge($param, ['status' => 1])); } } diff --git a/app/api/service/Goods.php b/app/api/service/Goods.php index c04d22b5..b30db8e7 100644 --- a/app/api/service/Goods.php +++ b/app/api/service/Goods.php @@ -128,6 +128,7 @@ class Goods extends GoodsService 'is_delete' => 0, 'is_brand' => $_GET['is_brand'], 'is_new' => $_GET['is_new'], + 'is_in_store' => $_GET['is_in_store'] ?? 0,//是否店内 'store_id' => $storeid, 'categoryId' => (int)$_GET['categoryId'], ], 15);