main
Jing Li 2024-06-07 14:49:35 +08:00
parent 03a1b355e4
commit de4f83844c
1 changed files with 3 additions and 8 deletions

View File

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