diff --git a/app/listener/ProductCreate.php b/app/listener/ProductCreate.php index 162836be..afe14699 100644 --- a/app/listener/ProductCreate.php +++ b/app/listener/ProductCreate.php @@ -13,9 +13,9 @@ class ProductCreate public function handle($event) { - $merchant=Db::name('merchant')->where('status',1)->where('mer_state',1)->where('mer_id',$event['product']['mer_id'])->find(); - if ($merchant['type_id']==11){ - $this->CloudMerchanSpu($merchant,$event); + $merchant=Db::name('merchant')->where('status',1)->where('is_del',0)->where('mer_id',$event['product']['mer_id'])->find(); + if (empty($merchant)) { + return false; } if ($merchant['type_id']==13 ||$merchant['type_id']==11){ return false;