parent
f6f4e5e007
commit
4e86efbab4
|
@ -70,8 +70,8 @@ class IndexController extends BaseApiController
|
||||||
'create_time' => $landCollection['create_time']
|
'create_time' => $landCollection['create_time']
|
||||||
];
|
];
|
||||||
$monitorThreshold = MonitorThreshold::select();
|
$monitorThreshold = MonitorThreshold::select();
|
||||||
if($monitorThreshold){
|
if($monitorThreshold->toArray()!=null){
|
||||||
$monitorThreshold=$monitorThreshold->toArray()[0];
|
$monitorThreshold=$monitorThreshold[0];
|
||||||
}else{
|
}else{
|
||||||
$monitorThreshold=[];
|
$monitorThreshold=[];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue