add 设备图
This commit is contained in:
parent
ac46035ba5
commit
d37a1e6169
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue