调整可能存在的bug
parent
8b7dbb30f4
commit
85bddb4005
|
|
@ -219,7 +219,7 @@ class DeviceController extends Controller
|
|||
if (isset($_dataList[$_key])) {
|
||||
$data[$device->monitoring_point][$_key] = $_dataList[$_key][$deviceColumn] ?? null;
|
||||
}else{
|
||||
$data[$device->monitoring_point][$_key] = $data[$device->monitoring_point][now()->subHours($i+1)->format('Y-m-d H').':00:00'];
|
||||
$data[$device->monitoring_point][$_key] = $data[$device->monitoring_point][now()->subHours($i+1)->format('Y-m-d H').':00:00'] ?? null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue