|
|
@@ -373,6 +373,10 @@ public class SysFileService : IDynamicApiController, ITransient
|
|
|
newFile.Url = $"{(_OSSProviderOptions.IsEnableHttps ? "https" : "http")}://{newFile.BucketName}.{_OSSProviderOptions.Endpoint}/{filePath}";
|
|
|
break;
|
|
|
|
|
|
+ case OSSProvider.QCloud:
|
|
|
+ newFile.Url = $"{(_OSSProviderOptions.IsEnableHttps ? "https" : "http")}://{newFile.BucketName}-{_OSSProviderOptions.Endpoint}.cos.{_OSSProviderOptions.Region}.myqcloud.com/{filePath}";
|
|
|
+ break;
|
|
|
+
|
|
|
case OSSProvider.Minio:
|
|
|
// 获取Minio文件的下载或者预览地址
|
|
|
// newFile.Url = await GetMinioPreviewFileUrl(newFile.BucketName, filePath);// 这种方法生成的Url是有7天有效期的,不能这样使用
|