From de4f83844c72fa85fd39a5af8125fbdea589dd78 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Fri, 7 Jun 2024 14:49:35 +0800 Subject: [PATCH] Update --- app/Console/Commands/BiAng/DeviceLogSyncCommand.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/Console/Commands/BiAng/DeviceLogSyncCommand.php b/app/Console/Commands/BiAng/DeviceLogSyncCommand.php index 534c564..220afa7 100644 --- a/app/Console/Commands/BiAng/DeviceLogSyncCommand.php +++ b/app/Console/Commands/BiAng/DeviceLogSyncCommand.php @@ -54,11 +54,6 @@ class DeviceLogSyncCommand extends Command */ protected function sync(): void { - $now = now(); - - $this->info('------------------------------------------'); - $this->info('同步时间: '. $now); - /** @var \Illuminate\Database\Eloquent\Collection */ $devices = Device::with(['project']) ->supplierBy("device-supplier-biang") @@ -79,7 +74,10 @@ class DeviceLogSyncCommand extends Command continue; } + $now = now(); + $this->info('=========================================='); + $this->info('同步时间: '. $now); $this->info('设备编号: ' . $device->sn); $this->info('设备名称: ' . $device->name); $this->info('设备类型: ' . match ($device->type) { @@ -207,9 +205,6 @@ class DeviceLogSyncCommand extends Command $this->info('=========================================='); } - - $this->info('------------------------------------------'); - $this->newLine(); } /**