|
@@ -1350,6 +1350,30 @@ class CameraApiController extends BaseController
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
+ //使用说明
|
|
|
+ public function readme(Request $request){
|
|
|
+ $params = $request->all();
|
|
|
+
|
|
|
+ $result['coal_washery'] = DB::connection('task_xixuan')->table('xx_coal_washery')->get();
|
|
|
+
|
|
|
+ $mine_list = DB::table('mine_list')->where('parent_id',6356)->where('deleted_at',null)->get();
|
|
|
+
|
|
|
+ $result['camera_list'] = [];
|
|
|
+ if(count($mine_list) > 0){
|
|
|
+ for($i=0;$i<count($mine_list);$i++){
|
|
|
+ $camera_list = DB::table('camera_list')->where('mine_id',$mine_list[$i]->id)->where('is_show',1)->where('deleted_at',null)->get();
|
|
|
+ if(count($camera_list) > 0){
|
|
|
+ $result['camera_list'][$i]['area'] = $mine_list[$i]->title;
|
|
|
+ for($j=0;$j<count($camera_list);$j++){
|
|
|
+ $result['camera_list'][$i]['camera_list'] = $camera_list[$j]->id.':'.$camera_list[$j]->camera_name;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return $result;
|
|
|
+ }
|
|
|
+
|
|
|
//主屏幕
|
|
|
public function mainHome(Request $request){
|
|
|
$gao = DB::connection('task_xixuan')->table('xx_risk_assignment')->whereDate('optdt', today())->where('risk_level',0)->count();
|