From e002c67732b571f0b20cca8321ca8ee1ddba2e05 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 14 八月 2023 17:05:23 +0800 Subject: [PATCH] 修改文件上传、GDB/Shp数据读取、数据入库、元数据管理等接口 --- src/main/java/com/moon/server/helper/PathHelper.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/moon/server/helper/PathHelper.java b/src/main/java/com/moon/server/helper/PathHelper.java index 74c4033..0c2604e 100644 --- a/src/main/java/com/moon/server/helper/PathHelper.java +++ b/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; } -- Gitblit v1.9.3