|
@@ -150,7 +150,7 @@ class UpdateHkList extends Command
|
|
|
|
|
|
if(sizeof($device_list['content'])>0){
|
|
if(sizeof($device_list['content'])>0){
|
|
for($i=0;$i<sizeof($device_list['content']);$i++){
|
|
for($i=0;$i<sizeof($device_list['content']);$i++){
|
|
- if(isset($device_list['content'][$i]['sId'])){
|
|
|
|
|
|
+ if(isset($device_list['content'][$i]['sId']) && $device_list['content'][$i]['onlineStatus']==1){
|
|
//rtsp视频流
|
|
//rtsp视频流
|
|
$url = 'http://10.71.177.215:7000/pangu/sdkServer/videoStreaming/getRtspById';
|
|
$url = 'http://10.71.177.215:7000/pangu/sdkServer/videoStreaming/getRtspById';
|
|
$format = 'post';
|
|
$format = 'post';
|
|
@@ -159,7 +159,7 @@ class UpdateHkList extends Command
|
|
$params = [
|
|
$params = [
|
|
'mine_id' => $mine_id,
|
|
'mine_id' => $mine_id,
|
|
'ip' => '10.71.177.215',
|
|
'ip' => '10.71.177.215',
|
|
- 'port' => 554,
|
|
|
|
|
|
+ 'port' => 1554,
|
|
'user_name' => 'admin1',
|
|
'user_name' => 'admin1',
|
|
'password' => 'Td123..',
|
|
'password' => 'Td123..',
|
|
'camera_url' => $camera_url['content'][0]['url'],
|
|
'camera_url' => $camera_url['content'][0]['url'],
|
|
@@ -174,6 +174,8 @@ class UpdateHkList extends Command
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //删除不存在的摄像头
|
|
|
|
+ CameraList::where('mine_id', $mine_id)->where('onlineStatus',0)->delete();
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|