|
@@ -73,7 +73,6 @@ public class StorageFileServiceImpl implements IStorageFileService {
|
|
|
for (SysStorageConfigDTO storageConfig : list) {
|
|
for (SysStorageConfigDTO storageConfig : list) {
|
|
|
fileClientFactory.createOrUpdateFileClient(storageConfig.getId(), storageConfig.getType(),parseClientConfig(storageConfig.getType(), storageConfig.getConfig()));
|
|
fileClientFactory.createOrUpdateFileClient(storageConfig.getId(), storageConfig.getType(),parseClientConfig(storageConfig.getType(), storageConfig.getConfig()));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -82,14 +81,9 @@ public class StorageFileServiceImpl implements IStorageFileService {
|
|
|
if(StrUtil.isEmpty(configId)){
|
|
if(StrUtil.isEmpty(configId)){
|
|
|
configId=defaultConfig.getId();
|
|
configId=defaultConfig.getId();
|
|
|
}
|
|
}
|
|
|
-// SysStorageConfigDTO config=defaultConfig;
|
|
|
|
|
-// if(StrUtil.isNotEmpty(configId)){
|
|
|
|
|
-// config=storageConfigService.selectSysStorageConfigById(configId);
|
|
|
|
|
-// }
|
|
|
|
|
FileClient fileClient = fileClientFactory.getFileClient(configId);
|
|
FileClient fileClient = fileClientFactory.getFileClient(configId);
|
|
|
String bizName = createBizName(filename);
|
|
String bizName = createBizName(filename);
|
|
|
String suffix = FileUtil.extName(filename);
|
|
String suffix = FileUtil.extName(filename);
|
|
|
-// FileClient fileClient = getClient(config);
|
|
|
|
|
fileClient.upload(content,bizName);
|
|
fileClient.upload(content,bizName);
|
|
|
String downUrl = fileClient.downUrl(bizName);
|
|
String downUrl = fileClient.downUrl(bizName);
|
|
|
SysStorageRecordDTO record = SysStorageRecordDTO.builder()
|
|
SysStorageRecordDTO record = SysStorageRecordDTO.builder()
|