From 4631ff57470ac4376ea348b80d21a9858476c3f8 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Sun, 3 Mar 2024 17:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E6=B7=BB=E5=8A=A0=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E5=BA=97=E5=86=85=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/model/Category.php | 2 ++ app/api/service/Goods.php | 1 + 2 files changed, 3 insertions(+) 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 84d997cf..0541975b 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);