视频地址

This commit is contained in:
chenbo 2024-01-02 14:42:32 +08:00
parent a4d3887205
commit 0fe66b9c21
1 changed files with 1 additions and 0 deletions

View File

@ -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'] = [];