瀏覽代碼

获取机车前向摄像机视频添加日志;天网接口请求参数添加日志

wyyay 6 月之前
父節點
當前提交
93d7254fc0

+ 1 - 1
business-service/src/main/java/com/ozs/entity/response/VehicleVedioResponse.java

@@ -14,7 +14,7 @@ public class VehicleVedioResponse {
     /**
      * 车号
      */
-    private Integer trainNum;
+    private String trainNum;
     /**
      * AB节
      */

+ 2 - 1
business-service/src/main/java/com/ozs/utils/CameraUtil.java

@@ -1228,7 +1228,8 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
         camerasVo.setExpand("streamform=rtp");
         String body = JSONObject.toJSONString(camerasVo);
         String previewURLs = getPreviewURLs("/api/video/v1/cameras/previewURLs", body);
-        log.info("-------------------------------->>>>>previewURLs" + previewURLs+"camerasVo:"+camerasVo);
+        log.info("-------------------------------->>>>>previewURLs" + previewURLs);
+        log.info("天网接口请求参数:{}"+camerasVo);
         if (StringUtils.isEmpty(previewURLs)) {
             log.info("天网接口异常");
             return "天网接口异常";

+ 1 - 0
vehicle-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

@@ -2262,6 +2262,7 @@ public class GeoHazardMonitorTokenController {
     @PostMapping("/api/vehicle/vedio")
     public String vehicleVedio(@RequestBody ParameterVo parameterVo, HttpServletRequest request) {
         String token = apiTokenUtils.getGeoHazardMonitorToken(request);
+        log.info("获取机车前向摄像机视频请求地址:", request.getScheme()+"/"+request.getServerName()+"/"+request.getServerPort()+"/"+request.getContextPath()+"/api/vehicle/vedio");
         log.info("token:{}", token);
         log.info("parameterVo:{}", parameterVo);
         AjaxResults AjaxResults1 = null;