From c06e5df8fe74bbb81fe7b4299bf7dd2b3cfbed73 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 12 七月 2023 19:36:05 +0800
Subject: [PATCH] D75

---
 src/main/java/com/lf/server/helper/PathHelper.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/lf/server/helper/PathHelper.java b/src/main/java/com/lf/server/helper/PathHelper.java
index 2d70eee..3575049 100644
--- a/src/main/java/com/lf/server/helper/PathHelper.java
+++ b/src/main/java/com/lf/server/helper/PathHelper.java
@@ -2,6 +2,7 @@
 
 import com.lf.server.config.PropertiesConfig;
 import com.lf.server.entity.all.SettingData;
+import com.lf.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.D75) {
                 return;
             }
 
@@ -163,4 +162,4 @@
             log.error(ex.getMessage(), ex);
         }
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3