czt
2024-07-25 f6c758e165d5ff5900e27b8b305857fde9ac80b6
src/main/java/com/fzzy/api/utils/FileUtils.java
@@ -96,4 +96,32 @@
      return basePath;
   }
   public String getSnapFilePath(Date date) {
      if (null == date) {
         date = new Date();
      }
      String basePath = configData.getImgPath() + "SNAP/"
            + DateFormatUtils.format(date, "yyyyMM") + "/";
      File file = new File(basePath);
      if (!file.exists()) {
         file.mkdirs();
      }
      return basePath;
   }
   public String getCommonFilePath(Date date) {
      if (null == date)
         date = new Date();
      String basePath = configData.getImgPath() + "COMMON/"
            + DateFormatUtils.format(date, "yyyyMM") + "/";
      File file = new File(basePath);
      if (!file.exists()) {
         file.mkdirs();
      }
      return basePath;
   }
}