月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-11-28 4393d934ba300601a91084763616ea80379b550e
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 D80 = 80;
    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 < D80) {
            if (ran < StaticData.D90) {
                return;
            }