月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-14 e002c67732b571f0b20cca8321ca8ee1ddba2e05
src/main/java/com/moon/server/helper/PathHelper.java
@@ -2,6 +2,7 @@
import com.moon.server.config.PropertiesConfig;
import com.moon.server.entity.all.SettingData;
import com.moon.server.entity.all.StaticData;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -22,8 +23,6 @@
    private static int downloadPath = 1;
    private static int uploadPath = 1;
    private final static double D90 = 90;
    private final static Log log = LogFactory.getLog(PathHelper.class);
@@ -142,7 +141,7 @@
    public void deleteOldPath(String tempPath) {
        try {
            double ran = Math.random() * 99;
            if (ran < D90) {
            if (ran < StaticData.D90) {
                return;
            }