mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
feat: #10000 ktt订单获取优化
This commit is contained in:
parent
d8d888b368
commit
c005ff0226
@ -49,9 +49,10 @@ class Swoole extends Command
|
||||
$shops = Shop::query()->where('plat_id', Shop::$PLAT_KTT)->where('status', Shop::$STATUS_AUTHORIZED)->get();
|
||||
$endTime = DateTimeUtils::getMicroTime();
|
||||
$beginTime = $endTime - 3000;
|
||||
Log::info($beginTime . '--' . $endTime + 3000);
|
||||
$endTime += 3000;
|
||||
Log::info($beginTime . '--' . $endTime);
|
||||
foreach ($shops as $shop) {
|
||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime + 3000, 'increment');
|
||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment');
|
||||
}
|
||||
});
|
||||
Event::wait();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user