修复错误
This commit is contained in:
parent
61188a1380
commit
7ca9f0dc6a
@ -277,8 +277,10 @@ class ProductRepository extends BaseRepository
|
||||
event('product.update.before', compact('id', 'data', 'merId', 'productType', 'conType'));
|
||||
$spuData = $product = $this->setProduct($data);
|
||||
$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);
|
||||
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['attr'] = $this->setAttr($data['attr'], $id);
|
||||
$content = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user