管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-22 a53aa40ad5f7f07fcaaa539ece4ab9e6d7e92678
1
已修改2个文件
8 ■■■■ 文件已修改
src/main/java/com/lf/server/helper/PathHelper.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/helper/StringHelper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/helper/PathHelper.java
@@ -25,7 +25,7 @@
    private static int sharePath = 1;
    private final static double D90 = 90;
    private final static double D85 = 85;
    private final static Log log = LogFactory.getLog(PathHelper.class);
@@ -158,12 +158,12 @@
    public void deleteOldPath(String tempPath) {
        try {
            double ran = Math.random() * 99;
            if (ran < D90) {
            if (ran < D85) {
                return;
            }
            File file = new File(tempPath);
            String str = StringHelper.YMD__FORMAT.format(new Date());
            String str = StringHelper.YMD2_FORMAT.format(new Date());
            File[] files = file.listFiles();
            for (File f : files) {
src/main/java/com/lf/server/helper/StringHelper.java
@@ -30,7 +30,7 @@
    /**
     * 格式化当前系统日期 3
     */
    public static final SimpleDateFormat YMD__FORMAT = new SimpleDateFormat("yyyyMMdd_");
    public static final SimpleDateFormat YMD2_FORMAT = new SimpleDateFormat("yyyyMMdd");
    /**
     * 格式化当前系统日期 4