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) {