mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
feat: #10000 增量订单获取优化
This commit is contained in:
parent
1787b4c355
commit
5337b2fde0
@ -43,10 +43,10 @@ class Swoole extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
Timer::tick(5000, function () {
|
||||
Timer::tick(3000, function () {
|
||||
$shops = Shop::query()->where('plat_id', 1)->where('status', 1)->get();
|
||||
$endTime = DateTimeUtils::getMicroTime();
|
||||
$beginTime = $endTime - 5000;
|
||||
$beginTime = $endTime - 3000;
|
||||
foreach ($shops as $shop) {
|
||||
BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user