修改EDI方法

booking_auth_dev
jianghaiqing 2 years ago
parent e6a65a4fce
commit 1b59f22fcf

@ -2043,7 +2043,7 @@ namespace Myshipping.Application
//读取文件配置 //读取文件配置
var fileCfg = App.GetOptions<BookingAttachOptions>(); var fileCfg = App.GetOptions<BookingAttachOptions>();
string filePath = $"{Path.Combine(!string.IsNullOrWhiteSpace(fileCfg.basePath) ? fileCfg.basePath : App.WebHostEnvironment.WebRootPath, fileCfg.relativePath)}\\edifiles\\{order.BSNO}"; string filePath = $"{Path.Combine(!string.IsNullOrWhiteSpace(fileCfg.basePath) ? fileCfg.basePath : App.WebHostEnvironment.WebRootPath, fileCfg.relativePath)}\\edifiles\\{order.BOOKINGNO}";
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
filePath = filePath.Replace("\\", "/"); filePath = filePath.Replace("\\", "/");

Loading…
Cancel
Save