Pu Zhibing
2025-03-03 05df94f5658524d5c404415ab63e95bc139d8b3f
guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/videoGateway/VideoGateway.java
@@ -417,13 +417,13 @@
      //图片地址
      String data = result.getString("data");
      if(ToolUtil.isEmpty(data)){
         if(num == 12){
         if(num == 60){
            log.error(result.getString("msg"));
            throw new RuntimeException("【2018年协议车辆获取拍摄图片】12次(1分钟)失败:" + execute.body());
            throw new RuntimeException("【2018年协议车辆获取拍摄图片】60次(1分钟)失败:" + execute.body());
         }
         num++;
         try {
            Thread.sleep(5000);
            Thread.sleep(1000);
         } catch (InterruptedException e) {
            throw new RuntimeException(e);
         }
@@ -468,13 +468,13 @@
      //图片地址
      String data = result.getString("data");
      if(ToolUtil.isEmpty(data)){
         if(num == 12){
         if(num == 60){
            log.error(result.getString("msg"));
            throw new RuntimeException("【2023年协议车辆获取拍摄图片】12次(1分钟)失败:" + execute.body());
            throw new RuntimeException("【2023年协议车辆获取拍摄图片】60次(1分钟)失败:" + execute.body());
         }
         num++;
         try {
            Thread.sleep(5000);
            Thread.sleep(1000);
         } catch (InterruptedException e) {
            throw new RuntimeException(e);
         }