From 5a9fd1b8c46488b7bc0dda9d365b1c7e97e903b5 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 5 Jun 2023 14:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/ProductCreate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;