feat: 修改

This commit is contained in:
赵世界 2024-03-23 14:58:41 +08:00
parent e9ad57ad46
commit 025a8538eb
2 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\InteractsWithQueue;
use App\Events\BatchStockUpdateEvent; use App\Events\BatchStockUpdateEvent;
class CombinationGoodsStockUpdateListener class CombinationGoodsStockUpdateListener implements ShouldQueue
{ {
use InteractsWithQueue;
/** /**
* Create the event listener. * Create the event listener.
* *

View File

@ -68,7 +68,7 @@ class UpdateBusinessGoodsStock implements ShouldQueue
->get(); ->get();
foreach ($businessGoodsSkus as $businessGoodsSku) { foreach ($businessGoodsSkus as $businessGoodsSku) {
BusinessGoodsSkuIncrQuantity::dispatch($shop, $businessGoodsSku->toArray(), $num, false); BusinessGoodsSkuIncrQuantity::dispatch($shop, $businessGoodsSku->toArray(), $num, false);
usleep(100); usleep(140);
} }
} }
} }