From 9c7ff52aef5dc4845b2d507d530c6c5cf18f2491 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 13 二月 2023 17:16:07 +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