ow
This commit is contained in:
1 parent
6d68eb11b7
commit
67c632715b
29 files changed
+2801
-739
No files matched your search
@@ -80,7 +80,7 @@ namespace CloudBuilder.Security.Policy
|
||||
var phy = service.Configuration[ServiceSettingsPolicy.PhysicalFileDirectory] ?? "";
|
||||
var fileExtension = Path.GetExtension(orderKey);//获取文件格式,拓展名
|
||||
|
||||
if (GetType(orderKey!) == FileTypePolicy.PHOTO)
|
||||
if (GetType(orderKey!) == PHOTO)
|
||||
{
|
||||
if (transcodeIndc == YesNoPolicy.YES)
|
||||
{
|
||||
@@ -98,14 +98,14 @@ namespace CloudBuilder.Security.Policy
|
||||
url = service.Configuration[AppsettingsPolicy.ApplicationUrl] + webRootPath + filePath + orderKey;
|
||||
}
|
||||
}
|
||||
else if (GetType(orderKey!) == FileTypePolicy.AUDIO)
|
||||
else if (GetType(orderKey!) == AUDIO)
|
||||
{
|
||||
var backup = (service.Configuration[ServiceSettingsPolicy.DmsFileBackupDirectory] ?? "").Replace(phy ?? "", "");
|
||||
var filePathRel = Path.Combine(backup, createdBy, fileExtension.Replace(".", ""), "");
|
||||
var filePath = filePathRel.Replace(Path.DirectorySeparatorChar, '/') + "/";
|
||||
url = service.Configuration[AppsettingsPolicy.ApplicationUrl] + webRootPath + filePath + orderKey;
|
||||
}
|
||||
else if (GetType(orderKey!) == FileTypePolicy.VIDEO)
|
||||
else if (GetType(orderKey!) == VIDEO)
|
||||
{
|
||||
if (transcodeIndc == YesNoPolicy.YES)
|
||||
{
|
||||
@@ -122,6 +122,13 @@ namespace CloudBuilder.Security.Policy
|
||||
url = service.Configuration[AppsettingsPolicy.ApplicationUrl] + webRootPath + filePath + orderKey;
|
||||
}
|
||||
}
|
||||
else if (GetType(orderKey!) == LYRIC)
|
||||
{
|
||||
var upload = service.Configuration[ServiceSettingsPolicy.DmsFileUploadDirectory].Replace(phy, "");
|
||||
var filePathRel = Path.Combine(upload, createdBy, fileExtension.Replace(".", ""), "");
|
||||
var filePath = filePathRel.Replace(Path.DirectorySeparatorChar, '/') + "/";
|
||||
url = service.Configuration[AppsettingsPolicy.ApplicationUrl] + webRootPath + filePath + orderKey;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
public static string PackSourceVideoUrl(IApplicationService service, string createdBy, string orderKey)
|
||||
|
||||
Reference in new issue
Block a user