From 360cf5cf179c319196930b9353b74940b646a562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Thu, 11 Aug 2022 18:09:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E6=97=A5=E5=BF=97=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Swoole.php | 2 +- app/Models/Log.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Swoole.php b/app/Console/Commands/Swoole.php index ecc9494..1967e06 100644 --- a/app/Console/Commands/Swoole.php +++ b/app/Console/Commands/Swoole.php @@ -46,7 +46,7 @@ class Swoole extends Command Timer::tick(1000, function () { $shops = Shop::query()->where('plat_id', 1)->where('status', 1)->get(); $endTime = DateTimeUtils::getMicroTime(); - $beginTime = $endTime - 1000; + $beginTime = $endTime - 10000; foreach ($shops as $shop) { BusinessFactory::init()->make($shop->plat_id)->setShop($shop)->downloadOrdersAndSave($beginTime, $endTime, 'increment', 1); } diff --git a/app/Models/Log.php b/app/Models/Log.php index 43cd08b..be323d7 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -17,7 +17,8 @@ class Log extends Model 'target_id', 'target_field', 'user_id', - 'created_at', + 'start_time', + 'end_time', ]; public $fillable = [