Browse Source

工具类修改

gao.qiang 1 year ago
parent
commit
9710a3b102
1 changed files with 3 additions and 2 deletions
  1. 3 2
      business-service/src/main/java/com/ozs/utils/CameraUtil.java

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

@@ -1175,10 +1175,11 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
             String urls = data.getString("url");
             log.info("urls----->" + urls);
             try {
-                log.info("msg---------->" + httpUrl + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
+                log.info("httpUrl---------->" + httpUrl + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
                 String msg = HttpUtils.sendGet(httpUrl + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
                 log.info("msg---------->" + msg);
-                if (!msg.equals("ok")) {
+                log.info("boolen--------------" + msg.contains("ok"));
+                if (!msg.contains("ok")) {
 //                log.info("code---------->" + httpUrls + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
 //                String code = HttpUtils.sendGet(httpUrls + "/rtsp/api/pull?target=" + urls + "&streamPath=" + camerasVo.getCameraIndexCode() + "/" + channel + "&save=0");
 //                log.info("code---------->" + code);