|
|
@ -440,6 +440,8 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
|
|
|
|
|
|
|
|
var id = InnerSave(model, isSendApi: true).GetAwaiter().GetResult();
|
|
|
|
var id = InnerSave(model, isSendApi: true).GetAwaiter().GetResult();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.id = id;
|
|
|
|
|
|
|
|
|
|
|
|
MSKAPIBookingResultDto resultInfo = null;
|
|
|
|
MSKAPIBookingResultDto resultInfo = null;
|
|
|
|
|
|
|
|
|
|
|
|
_logger.LogInformation($"开始请求MSK API订舱,JSON={JSON.Serialize(bookingDto)}");
|
|
|
|
_logger.LogInformation($"开始请求MSK API订舱,JSON={JSON.Serialize(bookingDto)}");
|
|
|
@ -504,12 +506,17 @@ namespace Myshipping.Application.Service.BookingOrder
|
|
|
|
|
|
|
|
|
|
|
|
throw Oops.Bah(resultInfo.msg);
|
|
|
|
throw Oops.Bah(resultInfo.msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.succ = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex)
|
|
|
|
catch (Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogError($"MSK API订舱异常,req={JSON.Serialize(model)} 原因:{ex.Message}");
|
|
|
|
_logger.LogError($"MSK API订舱异常,req={JSON.Serialize(model)} 原因:{ex.Message}");
|
|
|
|
|
|
|
|
|
|
|
|
throw Oops.Bah($"MSK API订舱失败,{ex.Message}");
|
|
|
|
//throw Oops.Bah($"MSK API订舱失败,{ex.Message}");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.succ = false;
|
|
|
|
|
|
|
|
result.msg = $"MSK API订舱失败,{ex.Message}";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|