From e05f80abb1e6d4bdb520002936e2d14434b469f1 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 27 七月 2023 14:44:57 +0800
Subject: [PATCH] 修改上传文件的类型检测功能,屏蔽部分有效的文件

---
 src/main/java/com/lf/server/service/data/UploadService.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/lf/server/service/data/UploadService.java b/src/main/java/com/lf/server/service/data/UploadService.java
index 6ceedc6..92f9304 100644
--- a/src/main/java/com/lf/server/service/data/UploadService.java
+++ b/src/main/java/com/lf/server/service/data/UploadService.java
@@ -19,7 +19,6 @@
 import java.io.File;
 import java.sql.Timestamp;
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.List;
 
 /**
@@ -492,7 +491,7 @@
             }
 
             MetaEntity me = createMeta(mf, metaId);
-            if (StaticData._GDB.equals(me.getType())) {
+            if (StaticData.NGDB.equals(me.getType())) {
                 if (guids.contains(me.getGuid())) {
                     me.setMetaid(-1);
                 } else {

--
Gitblit v1.9.3