diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index ca6ca230..877106f4 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -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);