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();