diff --git a/app/Console/Commands/BiAng/DeviceLogSyncCommand.php b/app/Console/Commands/BiAng/DeviceLogSyncCommand.php index 0e1074a..64b58bd 100644 --- a/app/Console/Commands/BiAng/DeviceLogSyncCommand.php +++ b/app/Console/Commands/BiAng/DeviceLogSyncCommand.php @@ -137,14 +137,14 @@ class DeviceLogSyncCommand extends Command case DeviceType::InsectSexLure: $data = $httpClient->getWormPhotos($device->sn, $now->copy()->subHours(24), $now); - foreach ($data['imgUrl'] as $item) { - WormPhoto::firstOrCreate([ - 'device_id' => $device->id, - 'uploaded_at' => $item['time'], - ], [ - 'url' => $item['url'], - ]); - } + // foreach ($data['imgUrl'] as $item) { + // WormPhoto::firstOrCreate([ + // 'device_id' => $device->id, + // 'uploaded_at' => $item['time'], + // ], [ + // 'url' => $item['url'], + // ]); + // } $device->update([ 'status' => count($data['imgUrl'] ?? []) > 0 ? DeviceStatus::Online : DeviceStatus::Offline,