更新
This commit is contained in:
parent
fbb25484a3
commit
c0907dbead
@ -138,8 +138,12 @@ class StoreProduct extends BaseController
|
|||||||
$data['mer_id'] = $merId;
|
$data['mer_id'] = $merId;
|
||||||
$typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id');
|
$typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id');
|
||||||
$productType = $merchant->type_id == $typeSupplyChainId ? 98 : 0;
|
$productType = $merchant->type_id == $typeSupplyChainId ? 98 : 0;
|
||||||
$this->repository->edit($id, $data, $merId, $productType, 1);
|
$product=$this->repository->edit($id, $data, $merId, $productType, 1);
|
||||||
return app('json')->success('编辑成功');
|
if ($product) {
|
||||||
|
return app('json')->success('编辑成功');
|
||||||
|
} else {
|
||||||
|
return app('json')->fail('编辑失败');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user