From e0b82d1132451bb8f19e4f9e618351bcc9f8e90c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Wed, 14 Sep 2022 12:40:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#0909=20=E8=AE=A2=E5=8D=95=E5=BD=B1?= =?UTF-8?q?=E5=93=8D=E5=BA=93=E5=AD=98=E5=90=8C=E6=AD=A5=E8=87=B3=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=BA=97=E9=93=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Listeners/UpdateBusinessGoodsStock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/UpdateBusinessGoodsStock.php b/app/Listeners/UpdateBusinessGoodsStock.php index e34380f..91dc0d0 100644 --- a/app/Listeners/UpdateBusinessGoodsStock.php +++ b/app/Listeners/UpdateBusinessGoodsStock.php @@ -49,7 +49,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue if ('下架' === $event->goodsSku->status) { return; } - $shops = Shop::query()->where('id', '<>', $event->businessOrderItem['shop_id'])->whereNotIn('status', [0, 3])->get(['id', 'plat_id']); + $shops = Shop::query()->whereNotIn('status', [0, 3])->get(['id', 'plat_id']); if (empty($shops)) { LogFile::info('可操作店铺为空'); return;