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 {
(new BiAngDeviceLogService())->sync($device, $now->copy());
(new BiAngDeviceLogService())->sync($device, $now);
$this->info('同步成功!');
} catch (Throwable $e) {

View File

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