From 01722db9f20a824deff3691f9f59f0ec90215698 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Fri, 26 May 2023 10:53:03 +0800 Subject: [PATCH] AllowAnonymous --- .../Service/BookingOrder/BookingOrderService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index e945af92..e08edcad 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -3958,7 +3958,7 @@ namespace Myshipping.Application if (ediRouteEnum == EDIRouteEnum.TSL && model.send) { - if(model.sendType.Equals("E",StringComparison.OrdinalIgnoreCase)) + if (model.sendType.Equals("E", StringComparison.OrdinalIgnoreCase)) throw Oops.Oh($"暂未提供TSL的截单发送"); postSpiderUrl = _cache.GetAllDictData().GetAwaiter().GetResult() @@ -4666,7 +4666,7 @@ namespace Myshipping.Application { sendTypeName = "邮件"; } - else if(ediRouteEnum == EDIRouteEnum.TSL) + else if (ediRouteEnum == EDIRouteEnum.TSL) { sendTypeName = "POST"; } @@ -6079,7 +6079,7 @@ namespace Myshipping.Application #endregion #region 临时测试使用 - [HttpPost("/BookingOrder/HCCompareTest")] + [HttpPost("/BookingOrder/HCCompareTest"), AllowAnonymous] public async Task HCCompareTest() { var rtn =