parent
8f1b8ad26a
commit
8bf95a9a21
|
@ -69,7 +69,12 @@ class IndexController extends BaseApiController
|
||||||
'light_intensity'=>$landCollection['ambient_lighting'],
|
'light_intensity'=>$landCollection['ambient_lighting'],
|
||||||
'create_time' => $landCollection['create_time']
|
'create_time' => $landCollection['create_time']
|
||||||
];
|
];
|
||||||
$monitorThreshold = MonitorThreshold::select()->toArray()[0];
|
$monitorThreshold = MonitorThreshold::select();
|
||||||
|
if($monitorThreshold){
|
||||||
|
$monitorThreshold=$monitorThreshold->toArray()[0]
|
||||||
|
}else{
|
||||||
|
$monitorThreshold=[];
|
||||||
|
}
|
||||||
$monitorThreshold['ambient_air_pressure_max'] = 120;
|
$monitorThreshold['ambient_air_pressure_max'] = 120;
|
||||||
$monitorThreshold['ambient_air_pressure_min'] = 10;
|
$monitorThreshold['ambient_air_pressure_min'] = 10;
|
||||||
$data['monitor']['threshold'] = $monitorThreshold;
|
$data['monitor']['threshold'] = $monitorThreshold;
|
||||||
|
|
Loading…
Reference in New Issue