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(); } /**