|
@@ -59,6 +59,9 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
|
|
|
@Value("${obs.type:}")
|
|
|
private String type;
|
|
|
|
|
|
+ @Value("${obs.region:}")
|
|
|
+ private String region;
|
|
|
+
|
|
|
@Value("${obs.uploadMethod:}")
|
|
|
private String uploadMethod;
|
|
|
|
|
@@ -163,7 +166,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
|
|
|
|
|
|
//腾讯云COS对象存储
|
|
|
if (Objects.equals(type, "tencent")) {
|
|
|
- TencentCosUtils.uploadFile(ak, sk, bucketName, objectKey, file);
|
|
|
+ TencentCosUtils.uploadFile(ak, sk, bucketName,region, objectKey, file);
|
|
|
}
|
|
|
//华为云OBS对象存储(默认)
|
|
|
else if (Objects.equals(type, "huawei")) {
|