This commit is contained in:
liu 2024-03-19 10:28:22 +08:00
parent c034e0ca26
commit e1cc420068

View File

@ -292,7 +292,7 @@ class ProductRepository extends BaseRepository
if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误');
}
event('product.update.before', compact('id', 'data', 'merId', 'productType', 'conType'));
$spuData = $product = $this->setProduct($data);
$spuData = $product = $this->setProduct($data);//商品主表
$settleParams = $this->setAttrValue($data, $id, $productType, 1);
$settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId);
$settleParams['attr'] = $this->setAttr($data['attr'], $id);