From cc8111dbc369c1e82f159027ee8438912ae28128 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期二, 19 十月 2021 14:29:39 +0800
Subject: [PATCH] 初始化

---
 xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/FileManageFactory.java |   24 ++----------------------
 1 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/FileManageFactory.java b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/FileManageFactory.java
index 70ef4e4..33a9b23 100644
--- a/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/FileManageFactory.java
+++ b/xboot-modules/xboot-file/src/main/java/cn/exrick/xboot/file/manage/FileManageFactory.java
@@ -21,18 +21,6 @@
     private SettingService settingService;
 
     @Autowired
-    private QiniuFileManage qiniuFileManage;
-
-    @Autowired
-    private AliFileManage aliFileManage;
-
-    @Autowired
-    private TencentFileManage tencentFileManage;
-
-    @Autowired
-    private MinioFileManage minioFileManage;
-
-    @Autowired
     private LocalFileManage localFileManage;
 
     /**
@@ -44,18 +32,10 @@
 
         Setting setting = settingService.get(SettingConstant.OSS_USED);
         if (setting == null || StrUtil.isBlank(setting.getValue())) {
-            throw new XbootException("鎮ㄨ繕鏈厤缃甇SS瀛樺偍鏈嶅姟");
+            throw new XbootException("鎮ㄨ繕鏈厤缃瓨鍌ㄥ湴鍧�");
         }
         String type = setting.getValue();
-        if ((type.equals(SettingConstant.QINIU_OSS) && location == null) || CommonConstant.OSS_QINIU.equals(location)) {
-            return qiniuFileManage;
-        } else if ((type.equals(SettingConstant.ALI_OSS) && location == null) || CommonConstant.OSS_ALI.equals(location)) {
-            return aliFileManage;
-        } else if ((type.equals(SettingConstant.TENCENT_OSS) && location == null) || CommonConstant.OSS_TENCENT.equals(location)) {
-            return tencentFileManage;
-        } else if ((type.equals(SettingConstant.MINIO_OSS) && location == null) || CommonConstant.OSS_MINIO.equals(location)) {
-            return minioFileManage;
-        } else if ((type.equals(SettingConstant.LOCAL_OSS) && location == null) || CommonConstant.OSS_LOCAL.equals(location)) {
+        if ((type.equals(SettingConstant.LOCAL_OSS) && location == null) || CommonConstant.OSS_LOCAL.equals(location)) {
             return localFileManage;
         } else {
             throw new XbootException("鏆備笉鏀寔璇ュ瓨鍌ㄩ厤缃紝璇锋鏌ラ厤缃�");

--
Gitblit v1.9.1