liurunyu
2025-01-13 f62e059353b86b7d18958dbeaa17cdebcc2093c2
pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/dyFile/FileOperate.java
@@ -101,6 +101,27 @@
   }
   /**
    * 通过视频路径,得到对应缩略图的路径
    * @param videoPath
    * @return
    */
   public String getVideoFileZipPath(String videoPath, String extName){
      String path_ = null ;
      String prePath = null ;
      if(videoPath != null && !videoPath.trim().equals("")) {
         int lastDotIndex = videoPath.lastIndexOf('.');
         if (lastDotIndex >= 0) {
            prePath = videoPath.substring(0, lastDotIndex);
            path_ = prePath + "_." + extName ;
         }
      }
      if(path_ == null){
         path_ = videoPath ;
      }
      return path_ ;
   }
   /**
    * web分布式文件系统保存文件
    * @param file
    * @param fmUrl