add 设备图

This commit is contained in:
chenbo 2023-12-19 18:14:06 +08:00
parent 48d7dd3f23
commit ac46035ba5
1 changed files with 2 additions and 0 deletions

View File

@ -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);