|
@@ -236,6 +236,9 @@ class UpdateHkList extends Command
|
|
|
if(isset($device_list['content']) && sizeof($device_list['content'])>0){
|
|
|
for($j=0;$j<sizeof($device_list['content']);$j++){//循环添加区域下所有摄像头
|
|
|
if(isset($device_list['content'][$j]['sId'])){//筛选有sId的摄像头
|
|
|
+ if($device_list['content'][$j]['onlineStatus'] == 0){
|
|
|
+ $device_list['content'][$j]['onlineStatus'] = 2;
|
|
|
+ }
|
|
|
$params = [
|
|
|
'mine_id' => $v->id,
|
|
|
'ip' => $mine_list_ext[$i]->ip,
|
|
@@ -246,6 +249,7 @@ class UpdateHkList extends Command
|
|
|
'camera_source' => CameraEnum::CAMERA_SOURCE_2,
|
|
|
'index_code' => $device_list['content'][$j]['sId'],
|
|
|
'video_recorder'=> CameraEnum::VIDEO_RECORDER_TD,
|
|
|
+ 'camera_status' => $device_list['content'][$j]['onlineStatus'],
|
|
|
];
|
|
|
CameraList::updateOrCreate(['index_code' => $device_list['content'][$j]['sId']], $params);
|
|
|
}
|