修改
This commit is contained in:
parent
c034e0ca26
commit
e1cc420068
@ -292,7 +292,7 @@ class ProductRepository extends BaseRepository
|
|||||||
if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误');
|
if (count($data['attrValue']) > 1) throw new ValidateException('单规格商品属性错误');
|
||||||
}
|
}
|
||||||
event('product.update.before', compact('id', 'data', 'merId', 'productType', 'conType'));
|
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 = $this->setAttrValue($data, $id, $productType, 1);
|
||||||
$settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId);
|
$settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId);
|
||||||
$settleParams['attr'] = $this->setAttr($data['attr'], $id);
|
$settleParams['attr'] = $this->setAttr($data['attr'], $id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user