This commit is contained in:
mkm 2023-11-20 15:24:42 +08:00
parent fbb25484a3
commit c0907dbead

View File

@ -138,8 +138,12 @@ class StoreProduct extends BaseController
$data['mer_id'] = $merId;
$typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id');
$productType = $merchant->type_id == $typeSupplyChainId ? 98 : 0;
$this->repository->edit($id, $data, $merId, $productType, 1);
return app('json')->success('编辑成功');
$product=$this->repository->edit($id, $data, $merId, $productType, 1);
if ($product) {
return app('json')->success('编辑成功');
} else {
return app('json')->fail('编辑失败');
}
}
/**