feat: #10000 增量订单获取优化
This commit is contained in:
parent
c105ca0f3a
commit
1787b4c355
@ -46,7 +46,7 @@ class Swoole extends Command
|
|||||||
Timer::tick(5000, function () {
|
Timer::tick(5000, function () {
|
||||||
$shops = Shop::query()->where('plat_id', 1)->where('status', 1)->get();
|
$shops = Shop::query()->where('plat_id', 1)->where('status', 1)->get();
|
||||||
$endTime = DateTimeUtils::getMicroTime();
|
$endTime = DateTimeUtils::getMicroTime();
|
||||||
$beginTime = $endTime - 50000;
|
$beginTime = $endTime - 5000;
|
||||||
foreach ($shops as $shop) {
|
foreach ($shops as $shop) {
|
||||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment');
|
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user