feature/main20240421
郭嘉 8 months ago
parent 7a9ad21f30
commit f8e4a65505
  1. 2
      app/api/controller/Category.php
  2. 5
      app/common/model/GoodsCategoryRel.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;

@ -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([

Loading…
Cancel
Save