创建商品不再导入镇街云仓

This commit is contained in:
luofei 2023-05-25 14:26:13 +08:00
parent 3d0804037b
commit eb20646f5d
2 changed files with 5 additions and 4 deletions

View File

@ -241,8 +241,8 @@ class ProductRepository extends BaseRepository
$product['mer_labels'] = $data['mer_labels'];
app()->make(SpuRepository::class)->create($product, $result->product_id, $activity_id, $productType);
}
// $product = $result;
// event('product.create',compact('product'));
$product = $result;
event('product.create',compact('product'));
return $result->product_id;
});
}

View File

@ -40,7 +40,8 @@ class ProductCreate
}
}
//镇街云仓
$is_product=0;
//不再导入镇街云仓
/*$is_product=0;
if ($merchant['type_id']==10){
$townMerchantId = Db::name('merchant')->where('status',1)->where('mer_state',1)->where('category_id',$merchant['category_id'])->where('type_id',11)->value('mer_id');
if ($townMerchantId){
@ -60,7 +61,7 @@ class ProductCreate
}
}
}
}*/
}
public function CloudMerchanSpu($data,$event){