| 
					
				 | 
			
			
				@@ -139,17 +139,17 @@ public class VideoEquipmentInfoServiceImpl extends ServiceImpl<VideoEquipmentInf 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public MessageInfo getVideoUrl(String videoCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 获取token 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        String url = "http://dgs-servicebusgate2.zww.yjcloud.cn/oauth/token?client_id=8a7b785f08d04d439b71bc2b415cb685&client_secret=OA!Bq_P!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Map<String, String> map = restTemplate.getForObject(url, Map.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        System.out.println("map:" + map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        String token = map.get("access_token"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        // 请求数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        String url2 = "http://dgs-servicebusgate2.zww.yjcloud.cn/service/api/api/v1/cameras/previewURLs?client_id=8a7b785f08d04d439b71bc2b415cb685&access_token=" + token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        Map<String, String> parameters = new LinkedHashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        parameters.put("cameraIndexCode", videoCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        parameters.put("protocol", "ws"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        MessageInfo result = restTemplate.postForObject(url2, JSONObject.toJSONString(parameters), MessageInfo.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String url = "http://dgs-servicebusgate2.zww.yjcloud.cn/oauth/token?client_id=8a7b785f08d04d439b71bc2b415cb685&client_secret=OA!Bq_P!"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String, String> map = restTemplate.getForObject(url, Map.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        System.out.println("map:" + map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String token = map.get("access_token"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 请求数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        String url2 = "http://dgs-servicebusgate2.zww.yjcloud.cn/service/api/artemis/api/video/v1/cameras/previewURLs?client_id=8a7b785f08d04d439b71bc2b415cb685&access_token=" + token; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String, String> parameters = new LinkedHashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        parameters.put("cameraIndexCode", videoCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        parameters.put("protocol", "wss"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        MessageInfo result = restTemplate.postForObject(url2, JSONObject.toJSONString(parameters), MessageInfo.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // ws地址转化,从10段到59段 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          * { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -160,18 +160,13 @@ public class VideoEquipmentInfoServiceImpl extends ServiceImpl<VideoEquipmentInf 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          * 	    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          * } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        MessageInfo result = new MessageInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setCode(200); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        Map<String, String> data11 = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        data11.put("url", "wss://10.18.18.53:6014/proxy/10.18.18.53:559/openUrl/uQhfGdq"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        Map<String, String> data11 = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        data11.put("url", "wss://10.18.18.53:6014/proxy/10.18.18.53:559/openUrl/uQhfGdq"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //wss://10.18.18.53:6014/proxy/10.18.18.53:559/openUrl/yrtJ9EA 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //data11.put("url", "ws://10.18.18.53:559/openUrl/gC42FPi"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //  wss://10.18.18.53:6014/proxy/10.18.18.53:559/openUrl/uQhfGdq 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //  => wss:/splw2.mem.cegn.cn:6014/proxy/splw2.mem.cegn.cn:559/openurl/xlgbLPy 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        result.setData( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                data11 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, String> data = (Map<String, String>) result.getData(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (data != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String wsUrl = data.get("url"); 
			 |