修复编辑
This commit is contained in:
parent
02b78c6542
commit
61188a1380
@ -277,7 +277,9 @@ class ProductRepository extends BaseRepository
|
|||||||
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, $merId);
|
$settleParams = $this->setAttrValue($data, $id, $productType, 1, $merId);
|
||||||
|
if (isset($data['mer_cate_id']) && $data['mer_cate_id'] != 0 &&$data['mer_cate_id'][0]!=0) {
|
||||||
$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);
|
||||||
$content = [
|
$content = [
|
||||||
'content' => $conType ? json_encode($data['content']) : $data['content'],
|
'content' => $conType ? json_encode($data['content']) : $data['content'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user