From 0506486bb7cda87354ffb9496803e5361582c3c7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 19 十月 2022 10:11:26 +0800
Subject: [PATCH] 1

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

diff --git a/src/main/java/com/lf/server/helper/PathHelper.java b/src/main/java/com/lf/server/helper/PathHelper.java
index e0f964a..4dcbe1f 100644
--- a/src/main/java/com/lf/server/helper/PathHelper.java
+++ b/src/main/java/com/lf/server/helper/PathHelper.java
@@ -27,7 +27,7 @@
 
     private static int sharePath = 1;
 
-    private final static double D92 = 92;
+    private final static double D90 = 90;
 
     private final static Log log = LogFactory.getLog(PathHelper.class);
 
@@ -120,7 +120,7 @@
      * 鑾峰彇涓存椂璺緞
      */
     public String getTempPath() {
-        String tempName = FileHelper.getTempPath();
+        String tempName = StringHelper.getDateFormat4();
         String tempPath = config.getTempPath();
         String path = tempPath + File.separator + tempName;
 
@@ -130,7 +130,7 @@
         }
 
         double ran = Math.random() * 99;
-        if (ran > D92) {
+        if (ran > D90) {
             deleteOldPath(tempPath);
         }
 

--
Gitblit v1.9.3