|
|
|
@ -180,11 +180,15 @@ class Merchant extends Controller |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getShopCategory(): Json{ |
|
|
|
|
$list = []; |
|
|
|
|
$merchantId = $this->request->param('merchantId'); |
|
|
|
|
$merchant = new MerchantGoodsCate; |
|
|
|
|
$merchant = $merchant->where('merchant_id', $merchantId) |
|
|
|
|
->field('goods_cate') |
|
|
|
|
->find(); |
|
|
|
|
if(empty($merchant)){ |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
// $merchant = MerchantGoodsCate::detail($merchantId); |
|
|
|
|
$merchant = $merchant['goods_cate']; |
|
|
|
|
$goods_cate = explode(",", $merchant); |
|
|
|
|