ソースを参照

回放修改2.1

wwh 2 年 前
コミット
2db5b3efe8

+ 3 - 3
huimv-farm-video/src/main/java/com/huimv/video/dhicc/test/controller/VideoRecorControllerSg.java

@@ -76,7 +76,7 @@ public class VideoRecorControllerSg {
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String[] split = action.split("\\|");// |需要转义符
             String[] split = action.split("\\|");// |需要转义符
             JSONObject jsonObject = new JSONObject();
             JSONObject jsonObject = new JSONObject();
-            jsonObject.put("url", split[0]);
+            jsonObject.put("url", split[1]);
             return R.ok().put("data",jsonObject);
             return R.ok().put("data",jsonObject);
         } else if (farmId==22) {
         } else if (farmId==22) {
             System.out.println("海宁");
             System.out.println("海宁");
@@ -90,7 +90,7 @@ public class VideoRecorControllerSg {
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String[] split = action.split("\\|");// |需要转义符
             String[] split = action.split("\\|");// |需要转义符
             JSONObject jsonObject = new JSONObject();
             JSONObject jsonObject = new JSONObject();
-            jsonObject.put("url", split[0]);
+            jsonObject.put("url", split[1]);
             return R.ok().put("data",jsonObject);
             return R.ok().put("data",jsonObject);
         } else if (farmId==21){
         } else if (farmId==21){
             System.out.println("苍南");
             System.out.println("苍南");
@@ -104,7 +104,7 @@ public class VideoRecorControllerSg {
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String action =(String) JSONObject.fromObject(jsonObject1).get("url");
             String[] split = action.split("\\|");// |需要转义符
             String[] split = action.split("\\|");// |需要转义符
             JSONObject jsonObject = new JSONObject();
             JSONObject jsonObject = new JSONObject();
-            jsonObject.put("url", split[0]);
+            jsonObject.put("url", split[1]);
             return R.ok().put("data",jsonObject);
             return R.ok().put("data",jsonObject);
         }else {
         }else {
             return R.error();
             return R.error();