视频地址
This commit is contained in:
parent
31fa9fe3e3
commit
a4d3887205
|
@ -44,6 +44,9 @@ class IndexController extends BaseApiController
|
||||||
if($landProduct->isEmpty()){
|
if($landProduct->isEmpty()){
|
||||||
$data['monitor'] = [];
|
$data['monitor'] = [];
|
||||||
}else{
|
}else{
|
||||||
|
$productDevice = ProductDevice::where('product_id',$landProduct['product_id'])->findOrEmpty();
|
||||||
|
$device = Device::where('id', $productDevice['device_id'])->findOrEmpty();
|
||||||
|
$data['video_url'] = $device['video_url'];
|
||||||
$landCollection = LandCollection::where('land_id',$params['land_id'])->order('id desc')->findOrEmpty();
|
$landCollection = LandCollection::where('land_id',$params['land_id'])->order('id desc')->findOrEmpty();
|
||||||
if($landCollection->isEmpty()){
|
if($landCollection->isEmpty()){
|
||||||
$data['monitor'] = [];
|
$data['monitor'] = [];
|
||||||
|
|
Loading…
Reference in New Issue