src/main/java/com/fzzy/api/utils/FileUtils.java
@@ -110,4 +110,18 @@ } 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; } }