add 设备图
This commit is contained in:
parent
48d7dd3f23
commit
ac46035ba5
|
@ -4,6 +4,7 @@ namespace app\api\controller;
|
|||
use app\common\enum\notice\NoticeEnum;
|
||||
use app\common\model\action\Action;
|
||||
use app\common\model\device\Device;
|
||||
use app\common\model\device\MonitorThreshold;
|
||||
use app\common\model\land\Land;
|
||||
use app\common\model\land\LandProduct;
|
||||
use app\common\model\LandCollection;
|
||||
|
@ -68,6 +69,7 @@ class IndexController extends BaseApiController
|
|||
'light_intensity'=>$landCollection['ambient_lighting'],
|
||||
'create_time' => $landCollection['create_time']
|
||||
];
|
||||
$data['monitor']['threshold'] = MonitorThreshold::select()->toArray()[0];
|
||||
}
|
||||
}
|
||||
return $this->success('请求成功',$data);
|
||||
|
|
Loading…
Reference in New Issue