Update
parent
03a1b355e4
commit
de4f83844c
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue