|
|
|
@ -12,6 +12,7 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
use app\common\model\GoodsCategoryRel; |
|
|
|
|
use think\response\Json; |
|
|
|
|
use app\api\model\Category as CategoryModel; |
|
|
|
|
|
|
|
|
@ -42,4 +43,15 @@ class Category extends Controller |
|
|
|
|
$list = $model->getChildrenList($this->request->param()); |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function listmerchant(): Json |
|
|
|
|
{ |
|
|
|
|
$model = new CategoryModel; |
|
|
|
|
$hasGoods = GoodsCategoryRel::getcategory($this->storeId,$this->merchantId); |
|
|
|
|
|
|
|
|
|
$list = $model->getListPublic($this->request->param()); |
|
|
|
|
print_r($list);die; |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|