From cd87ffadf1f09c3d700f8f1007d7ec98e8fc1680 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 4 Sep 2023 13:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BA=97=E9=93=BA=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=90=8C=E6=AD=A5=E4=BA=91=E5=95=86=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/listener/ProductCreate.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/listener/ProductCreate.php b/app/listener/ProductCreate.php index 437b1c01..572a3a09 100644 --- a/app/listener/ProductCreate.php +++ b/app/listener/ProductCreate.php @@ -25,6 +25,12 @@ class ProductCreate return false; } + // 根据支持同步到云商的商户进行同步操作 + $syncMerArray = Db::name('MerchantType')->where('is_sync_prod', 1)->column('mer_type_id'); + if (!in_array($merchant['type_id'], $syncMerArray)) { + return false; + } + //市级云仓 $cityMerchant = Db::name('merchant')->where('status', 1)->where('mer_state', 1)->where('category_id', $merchant['category_id'])->where('type_id', $typePlatformId)->find(); if ($cityMerchant) {