更新
This commit is contained in:
parent
7ca9f0dc6a
commit
ffddaef8a4
@ -239,7 +239,7 @@ class ProductRepository extends BaseRepository
|
||||
$result = $this->dao->create($product);
|
||||
|
||||
$settleParams = $this->setAttrValue($data, $result->product_id, $productType, 0, $data['mer_id']);
|
||||
if (isset($data['mer_cate_id']) && $data['mer_cate_id'] != 0) {
|
||||
if (isset($data['mer_cate_id']) && count($data['mer_cate_id']) != 0) {
|
||||
$settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $result->product_id, $data['mer_id']);
|
||||
}
|
||||
$settleParams['attr'] = $this->setAttr($data['attr'], $result->product_id);
|
||||
@ -277,7 +277,7 @@ 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 ) {
|
||||
if (isset($data['mer_cate_id']) && count($data['mer_cate_id']) != 0 ) {
|
||||
if($data['mer_cate_id'][0]!=0){
|
||||
$settleParams['cate'] = $this->setMerCate($data['mer_cate_id'], $id, $merId);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user