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