add 设备图

This commit is contained in:
chenbo 2023-12-19 18:15:01 +08:00
parent ac46035ba5
commit d37a1e6169
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,10 @@ class IndexController extends BaseApiController
'light_intensity'=>$landCollection['ambient_lighting'], 'light_intensity'=>$landCollection['ambient_lighting'],
'create_time' => $landCollection['create_time'] 'create_time' => $landCollection['create_time']
]; ];
$data['monitor']['threshold'] = MonitorThreshold::select()->toArray()[0]; $monitorThreshold = MonitorThreshold::select()->toArray()[0];
$monitorThreshold['ambient_air_pressure_max'] = 120;
$monitorThreshold['ambient_air_pressure_min'] = 10;
$data['monitor']['threshold'] = $monitorThreshold;
} }
} }
return $this->success('请求成功',$data); return $this->success('请求成功',$data);