|
@@ -74,9 +74,10 @@ public class VideoRecorControllerSg {
|
|
Object jsonObject1 = requestSg.doAction();
|
|
Object jsonObject1 = requestSg.doAction();
|
|
System.out.println(jsonObject1);
|
|
System.out.println(jsonObject1);
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
|
|
+ String token =(String) JSONObject.fromObject(jsonObject1).get("token");
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
- jsonObject.put("url", split[1]);
|
|
|
|
|
|
+ jsonObject.put("url", split[1]+"?token="+token+"&trackID=701");
|
|
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("海宁");
|
|
@@ -88,9 +89,10 @@ public class VideoRecorControllerSg {
|
|
requestHn.setData(value);
|
|
requestHn.setData(value);
|
|
Object jsonObject1 = requestHn.doAction();
|
|
Object jsonObject1 = requestHn.doAction();
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
|
|
+ String token =(String) JSONObject.fromObject(jsonObject1).get("token");
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
- jsonObject.put("url", split[1]);
|
|
|
|
|
|
+ jsonObject.put("url", split[1]+"?token="+token+"&trackID=701");
|
|
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("苍南");
|
|
@@ -102,9 +104,10 @@ public class VideoRecorControllerSg {
|
|
requestCn.setData(value);
|
|
requestCn.setData(value);
|
|
Object jsonObject1 = requestCn.doAction();
|
|
Object jsonObject1 = requestCn.doAction();
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
String action =(String) JSONObject.fromObject(jsonObject1).get("url");
|
|
|
|
+ String token =(String) JSONObject.fromObject(jsonObject1).get("token");
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
String[] split = action.split("\\|");// |需要转义符
|
|
JSONObject jsonObject = new JSONObject();
|
|
JSONObject jsonObject = new JSONObject();
|
|
- jsonObject.put("url", split[1]);
|
|
|
|
|
|
+ jsonObject.put("url", split[1]+"?token="+token+"&trackID=701");
|
|
return R.ok().put("data",jsonObject);
|
|
return R.ok().put("data",jsonObject);
|
|
}else {
|
|
}else {
|
|
return R.error();
|
|
return R.error();
|