From a07f0e7fb1e7fdbdb4c7796b2d938140e3e8dfef Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期三, 03 十一月 2021 17:27:13 +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