|
|
@ -12235,7 +12235,7 @@ namespace Myshipping.Application
|
|
|
|
var orderList = await _rep.AsQueryable().Where(x => ids.Contains(x.Id)).ToListAsync();
|
|
|
|
var orderList = await _rep.AsQueryable().Where(x => ids.Contains(x.Id)).ToListAsync();
|
|
|
|
if (orderList.Count == 0)
|
|
|
|
if (orderList.Count == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("未找到相应订舱");
|
|
|
|
throw Oops.Bah("电放失败,未找到相应订舱");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var allSysConfig = _cache.GetAllSysConfig().Result;
|
|
|
|
var allSysConfig = _cache.GetAllSysConfig().Result;
|
|
|
@ -12245,21 +12245,21 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(url))
|
|
|
|
if (string.IsNullOrWhiteSpace(url))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("大简云电放服务接口地址未配置,请联系管理员");
|
|
|
|
throw Oops.Bah("电放失败,大简云电放服务接口地址未配置,请联系管理员");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (string.IsNullOrWhiteSpace(key))
|
|
|
|
if (string.IsNullOrWhiteSpace(key))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("大简云电放服务接口Key未配置,请联系管理员");
|
|
|
|
throw Oops.Bah("电放失败,大简云电放服务接口Key未配置,请联系管理员");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (string.IsNullOrWhiteSpace(secret))
|
|
|
|
if (string.IsNullOrWhiteSpace(secret))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("大简云电放服务接口Secret未配置,请联系管理员");
|
|
|
|
throw Oops.Bah("电放失败,大简云电放服务接口Secret未配置,请联系管理员");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var webAccount = _webAccountConfig.GetAccountConfig("MSKWeb", UserManager.UserId).Result;
|
|
|
|
var webAccount = _webAccountConfig.GetAccountConfig("MSKWeb", UserManager.UserId).Result;
|
|
|
|
if (webAccount == null)
|
|
|
|
if (webAccount == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw Oops.Bah("未配置网站账户,类型:MSKWeb");
|
|
|
|
throw Oops.Bah("电放失败,未配置网站账户,类型:MSKWeb");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var mappingCarrier = _cache.GetAllMappingCarrier().Result;
|
|
|
|
var mappingCarrier = _cache.GetAllMappingCarrier().Result;
|
|
|
|