From 025a8538ebc69e4047078fd3561397902f4c21a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Sat, 23 Mar 2024 14:58:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Listeners/CombinationGoodsStockUpdateListener.php | 4 +++- app/Listeners/UpdateBusinessGoodsStock.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Listeners/CombinationGoodsStockUpdateListener.php b/app/Listeners/CombinationGoodsStockUpdateListener.php index 8456450..5443008 100644 --- a/app/Listeners/CombinationGoodsStockUpdateListener.php +++ b/app/Listeners/CombinationGoodsStockUpdateListener.php @@ -10,8 +10,10 @@ use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; use App\Events\BatchStockUpdateEvent; -class CombinationGoodsStockUpdateListener +class CombinationGoodsStockUpdateListener implements ShouldQueue { + use InteractsWithQueue; + /** * Create the event listener. * diff --git a/app/Listeners/UpdateBusinessGoodsStock.php b/app/Listeners/UpdateBusinessGoodsStock.php index 30d22b0..5f616dc 100644 --- a/app/Listeners/UpdateBusinessGoodsStock.php +++ b/app/Listeners/UpdateBusinessGoodsStock.php @@ -68,7 +68,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue ->get(); foreach ($businessGoodsSkus as $businessGoodsSku) { BusinessGoodsSkuIncrQuantity::dispatch($shop, $businessGoodsSku->toArray(), $num, false); - usleep(100); + usleep(140); } } }