From 5337b2fde0347bf7379f90eeffefa69da8f3a75a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Fri, 26 Aug 2022 14:25:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=A2=9E=E9=87=8F=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=8E=B7=E5=8F=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Swoole.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Swoole.php b/app/Console/Commands/Swoole.php index e7e8bb9..136b5f5 100644 --- a/app/Console/Commands/Swoole.php +++ b/app/Console/Commands/Swoole.php @@ -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'); }