refactor: 关闭存储桶创建

This commit is contained in:
ray
2024-08-15 22:14:06 +08:00
parent 6c6a4c6e34
commit ab4b3d0d25

View File

@@ -69,7 +69,7 @@ public class MinioOssService implements OssService {
.credentials(accessKey, secretKey) .credentials(accessKey, secretKey)
.build(); .build();
// 创建存储桶 // 创建存储桶
createBucketIfAbsent(bucketName); // createBucketIfAbsent(bucketName);
} }
@@ -82,8 +82,6 @@ public class MinioOssService implements OssService {
@Override @Override
public FileInfo uploadFile(MultipartFile file) { public FileInfo uploadFile(MultipartFile file) {
// 生成文件名(日期文件夹) // 生成文件名(日期文件夹)
String suffix = FileUtil.getSuffix(file.getOriginalFilename()); String suffix = FileUtil.getSuffix(file.getOriginalFilename());
String uuid = IdUtil.simpleUUID(); String uuid = IdUtil.simpleUUID();