Merge pull request !154 from 赵世界/develop
This commit is contained in:
赵世界 2023-04-06 06:12:14 +00:00 committed by Gitee
commit 743b518f1f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -49,9 +49,10 @@ class Swoole extends Command
$shops = Shop::query()->where('plat_id', Shop::$PLAT_KTT)->where('status', Shop::$STATUS_AUTHORIZED)->get(); $shops = Shop::query()->where('plat_id', Shop::$PLAT_KTT)->where('status', Shop::$STATUS_AUTHORIZED)->get();
$endTime = DateTimeUtils::getMicroTime(); $endTime = DateTimeUtils::getMicroTime();
$beginTime = $endTime - 3000; $beginTime = $endTime - 3000;
Log::info($beginTime . '--' . $endTime + 3000); $endTime += 3000;
Log::info($beginTime . '--' . $endTime);
foreach ($shops as $shop) { 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(); Event::wait();