|
|
|
@ -22,6 +22,7 @@ use app\store\model\store\User as StoreUserModel; |
|
|
|
|
use app\store\model\store\Role as role; |
|
|
|
|
use app\common\model\store\UserRole as UserRoleModel; |
|
|
|
|
use app\common\model\MerchantGoodsCate; |
|
|
|
|
use think\Db; |
|
|
|
|
/** |
|
|
|
|
* 商户ID、商店ID 隔离商城里面的商户 |
|
|
|
|
* Class Store |
|
|
|
@ -182,12 +183,22 @@ class Merchant extends Controller |
|
|
|
|
$merchantId = $this->merchantId; |
|
|
|
|
} |
|
|
|
|
public function getMerchantGoodsCate(): Json{ |
|
|
|
|
$merchantId = $this->merchantId; |
|
|
|
|
$merchant = MerchantGoodsCate::detail($merchantId); |
|
|
|
|
//var_dump($merchant); |
|
|
|
|
|
|
|
|
|
return $this->renderSuccess(compact("merchant")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function addMerchant(): Json |
|
|
|
|
{ |
|
|
|
|
$data = $this->postForm(); |
|
|
|
|
$data = json_decode($data); |
|
|
|
|
$Merchant = MerchantGoodsCate::where($this->storeId)->find()->toArray(); |
|
|
|
|
return $this->renderSuccess($Merchant); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|