修复错误
This commit is contained in:
parent
61188a1380
commit
7ca9f0dc6a
@ -277,9 +277,11 @@ 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) {
|
if (isset($data['mer_cate_id']) && $data['mer_cate_id'] != 0 ) {
|
||||||
|
if($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