Pu Zhibing
2024-12-30 f9e8fafc10ccd1c2e5f6060b4cdc29559927aa16
guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/videoGateway/VideoGateway.java
@@ -286,6 +286,7 @@
      HttpRequest post = HttpUtil.createPost("https://zhyn.cg.gz.gov.cn/map/web/vehicleCtrl/" + terminalId + "/cameraShot");
      post.header("operate-terminal", "4");
      post.header("token", accountLogin.getToken());
      log.info("【2018年协议发送拍摄指令接口】请求地址:" + post.getUrl());
      Map<String, Object> body = new HashMap<>();
      body.put("channelId", channelId);
      log.info("【2018年协议发送拍摄指令接口】请求参数:" + JSON.toJSONString(body));
@@ -328,7 +329,6 @@
      HttpRequest get = HttpUtil.createGet("https://zhyn.cg.gz.gov.cn/api/cws-business/biz-device-send-records/v1/cameraShot?vehicleId=" + vehicleId + "&vehicleType=" + vehicleType + "&terminalId=" + terminalId + "&channelId=" + channelId);
      get.header("operate-terminal", "4");
      get.header("token", accountLogin.getToken());
      Map<String, Object> body = new HashMap<>();
      log.info("【2023年协议发送拍摄指令接口】请求参数:" + get.getUrl());
      HttpResponse execute = get.execute();
      if(401 == execute.getStatus()){
@@ -390,6 +390,7 @@
      if(null == data){
         return null;
      }
      data = data.replaceAll(";", "");
      return "https://zhyn-pic.cg.gz.gov.cn" + data;
   }
   
@@ -430,6 +431,7 @@
      if(null == data){
         return null;
      }
      data = data.replaceAll(";", "");
      return "https://zhyn-pic.cg.gz.gov.cn" + data;
   }