调整可能存在的bug

dev
vine_liutk 2023-03-22 20:13:04 +08:00
parent 8b7dbb30f4
commit 85bddb4005
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ class DeviceController extends Controller
if (isset($_dataList[$_key])) { if (isset($_dataList[$_key])) {
$data[$device->monitoring_point][$_key] = $_dataList[$_key][$deviceColumn] ?? null; $data[$device->monitoring_point][$_key] = $_dataList[$_key][$deviceColumn] ?? null;
}else{ }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;
} }
} }
} }