From 0fe66b9c2179ef750676a475e4662221ee14d846 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 2 Jan 2024 14:42:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index a93e3482..47fdf372 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -47,6 +47,7 @@ class IndexController extends BaseApiController $productDevice = ProductDevice::where('product_id',$landProduct['product_id'])->findOrEmpty(); $device = Device::where('id', $productDevice['device_id'])->findOrEmpty(); $data['video_url'] = $device['video_url']; + $data['device_id'] = $device['id']; $landCollection = LandCollection::where('land_id',$params['land_id'])->order('id desc')->findOrEmpty(); if($landCollection->isEmpty()){ $data['monitor'] = [];