修改BC任务和文件下载

optimize
jianghaiqing 1 year ago
parent dba2c682aa
commit e0420b2811

@ -287,7 +287,18 @@ namespace Myshipping.Application
await File.WriteAllBytesAsync(fileFullName, fileBytes);
return fileFullName;
string bookFilePath = string.Empty;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
bookFilePath = System.Text.RegularExpressions.Regex.Match(fileFullName, relativePath.Replace("/", "\\/") + ".*").Value;
}
else
{
bookFilePath = System.Text.RegularExpressions.Regex.Match(fileFullName, relativePath.Replace("\\", "\\\\") + ".*").Value;
}
return bookFilePath;
}
#endregion
}

@ -189,6 +189,7 @@ namespace Myshipping.Application
/// 获取待处理的BC任务来自邮件解析需要对应订舱系统会根据用户的订舱台账预配
/// </summary>
/// <returns>返回回执</returns>
[HttpGet("/TaskManageBC/GetToDoBCList")]
public async Task<TaskManageOrderResultDto> GetToDoBCList()
{
TaskManageOrderResultDto result = new TaskManageOrderResultDto();

Loading…
Cancel
Save