|
@@ -54,6 +54,9 @@ class TestsController {
|
|
|
//区域下(包含子区域)摄像头接口测试
|
|
|
// $this->camera_all_list();
|
|
|
|
|
|
+ //检查摄像头质量
|
|
|
+ $this->checkCameraQuality();
|
|
|
+
|
|
|
//化工人员定位煤制油部门信息录入
|
|
|
// $this->mzyBmxxInsert();
|
|
|
}
|
|
@@ -101,6 +104,28 @@ class TestsController {
|
|
|
dd('success');
|
|
|
}
|
|
|
|
|
|
+ //检查摄像头质量
|
|
|
+ public function checkCameraQuality(){
|
|
|
+ $mine_list = DB::table('mine_list')->where('degree','like','968|2308%')->where('deleted_at',null)->pluck('id');
|
|
|
+
|
|
|
+ $camera_list = DB::table('camera_list')->whereIn('mine_id',$mine_list)->where('deleted_at',null)->get();
|
|
|
+
|
|
|
+ $res = [];
|
|
|
+
|
|
|
+ if(count($camera_list) > 0){
|
|
|
+ for($i=0;$i<count($camera_list);$i++){
|
|
|
+
|
|
|
+ $result = CameraServices::checkCameraQuality(968, $camera_list[$i]->index_code);
|
|
|
+
|
|
|
+ $res[] = $result;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ dd($res);
|
|
|
+ dd('success');
|
|
|
+ }
|
|
|
+
|
|
|
//区域下摄像头接口测试
|
|
|
public function camera_all_list(){
|
|
|
$parent_id = 7004;
|