diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 582e8468..f87743d1 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'] = [];