Compare commits

..

No commits in common. "56226b84a62841207e958494d0feb76836b6696c" and "6e8b53e50d4a3cf145e8deb90a8e429b937c4eb6" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class DeviceLogSyncCommand extends Command
}); });
try { try {
(new BiAngDeviceLogService())->sync($device, $now->copy()); (new BiAngDeviceLogService())->sync($device, $now);
$this->info('同步成功!'); $this->info('同步成功!');
} catch (Throwable $e) { } catch (Throwable $e) {

View File

@ -62,7 +62,7 @@ class BiAngDeviceLogService
if ($data['status'] === 'online') { if ($data['status'] === 'online') {
InsecticidalLampReport::updateOrCreate([ InsecticidalLampReport::updateOrCreate([
'device_id' => $device->id, 'device_id' => $device->id,
'reported_at' => $syncTime->startOfHour(), 'reported_at' => $syncTime->copy()->startOfHour(),
], [ ], [
'battery_vol' => $data['vol'], 'battery_vol' => $data['vol'],
'killed_num' => $data['dct'], 'killed_num' => $data['dct'],