From ac46035ba540c08a8a0c660c2ebc55ea65da865e Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 19 Dec 2023 18:14:06 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E8=AE=BE=E5=A4=87=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 2 ++ 1 file changed, 2 insertions(+) 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);