diff --git a/app/api/controller/Category.php b/app/api/controller/Category.php index fb5fd1ff..3846de5a 100644 --- a/app/api/controller/Category.php +++ b/app/api/controller/Category.php @@ -48,7 +48,7 @@ class Category extends Controller public function listmerchant(): Json { $model = new CategoryModel; - $hasGoods = GoodsCategoryRel::getcategory($this->storeId,$this->merchantId); + $hasGoods = GoodsCategoryRel::getcategory($this->storeId,6); $list = $model->getListPublic($this->request->param()); print_r($list);die; diff --git a/app/common/model/GoodsCategoryRel.php b/app/common/model/GoodsCategoryRel.php index 49d055d4..33b7ec1f 100644 --- a/app/common/model/GoodsCategoryRel.php +++ b/app/common/model/GoodsCategoryRel.php @@ -51,11 +51,6 @@ class GoodsCategoryRel extends BaseModel } public static function getcategory(int $storeId = null,int $merchantId = null) { - print_r([ - 'a.store_id' => $storeId, - 'a.merchant_id' => $merchantId - //'b.category_id' => $_GET['category_id'] - ]);die; $list = Goods::alias('a') ->join('goods_category_rel b', 'a.goods_id = b.goods_id') ->where([