mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 06:30:49 +00:00
feat: 批量更新限流修改
This commit is contained in:
parent
025a8538eb
commit
2d47be7291
@ -45,6 +45,7 @@ class BatchStockUpdateListener implements ShouldQueue
|
|||||||
->where('external_sku_id', $goodsSku->external_sku_id)
|
->where('external_sku_id', $goodsSku->external_sku_id)
|
||||||
->get();
|
->get();
|
||||||
BusinessFactory::init()->make($shop['plat_id'])->setShopWithId($shop['id'])->batchIncrQuantity($businessGoodsSkus->toArray(), $num, false);
|
BusinessFactory::init()->make($shop['plat_id'])->setShopWithId($shop['id'])->batchIncrQuantity($businessGoodsSkus->toArray(), $num, false);
|
||||||
|
usleep(140);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user