From 8d65a3566ad87ab369175c2206231b0fea7f1272 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 19 Jun 2023 13:49:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E4=B8=8A?= =?UTF-8?q?=E6=9E=B6=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/CloudProduct.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/listener/CloudProduct.php b/app/listener/CloudProduct.php index 096f008b..26064da6 100644 --- a/app/listener/CloudProduct.php +++ b/app/listener/CloudProduct.php @@ -28,6 +28,9 @@ class CloudProduct continue; } $cloudMerchant = Merchant::getDB()->where(['type_id' => Merchant::TypeCloudWarehouse, 'category_id' => $categoryId, 'status' => 1, 'mer_state' => 1])->value('mer_id'); + if (empty($cloudMerchant)) { + continue; + } $status = $product->isEnable() ? 1 : 0; $exist = $repo->get($product['product_id']); if (!$exist) {