更新商品详情类型

This commit is contained in:
mkm 2023-10-07 17:15:27 +08:00
parent 49ff1bed44
commit d0e564533d

View File

@ -127,7 +127,7 @@ class Product extends BaseController
$data['update_time'] = date('Y-m-d H:i:s');
$typeSupplyChainId = Db::name('MerchantType')->where('type_code', Merchant::TypeCode['TypeSupplyChain'])->value('mer_type_id');
$productType = $this->request->merchant()->type_id == $typeSupplyChainId ? 98 : 0;
$this->repository->edit($id, $data, $this->request->merId(), $productType);
$this->repository->edit($id, $data, $this->request->merId(), $productType,1);
return app('json')->success('编辑成功');
}