😎增加腾讯云OSS外链处理
This commit is contained in:
parent
5c985d1ef2
commit
e4c217a043
@ -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天有效期的,不能这样使用
|
||||
|
||||
Loading…
Reference in New Issue
Block a user