From 4646f1fd1685e6ca8109658186016f4f3524790f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Fri, 5 May 2023 17:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/DeviceLogSyncCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/DeviceLogSyncCommand.php b/app/Console/Commands/DeviceLogSyncCommand.php index 4dda41d..51df568 100644 --- a/app/Console/Commands/DeviceLogSyncCommand.php +++ b/app/Console/Commands/DeviceLogSyncCommand.php @@ -17,7 +17,7 @@ class DeviceLogSyncCommand extends Command */ protected $signature = 'device-log:sync {factory} - {--sleep=60 : 设备数据同步完成后的休眠时间(秒)}'; + {--sleep=60 : 设备数据同步完成后的休眠时间(秒)}'; /** * The console command description. @@ -38,7 +38,7 @@ class DeviceLogSyncCommand extends Command { $this->deviceLogService = $deviceLogService; - $sleep = value(fn ($sleep) => is_numeric($sleep) ? (int) $sleep : 60, $this->option('sleep')); + $sleep = (int) value(fn ($sleep) => is_numeric($sleep) ? $sleep : 60, $this->option('sleep')); while (true) { $end = now();