diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs index 413fe8a5..aae6ea61 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs @@ -28,6 +28,7 @@ using Newtonsoft.Json; using StackExchange.Profiling.Internal; using SqlSugar; using static Aliyun.OSS.Model.InventoryConfigurationModel; +using System.Threading; namespace Myshipping.Application.Service.BookingOrder { @@ -1909,6 +1910,8 @@ namespace Myshipping.Application.Service.BookingOrder failNum++; } + + Thread.Sleep(1000); }); msgList.Add($"共计{totalNum} 条 成功{succNum}条 失败:{failNum}"); diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKSPOTAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKSPOTAPIService.cs index c22e696c..36ee4b71 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKSPOTAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKSPOTAPIService.cs @@ -22,6 +22,7 @@ using Yitter.IdGenerator; using System.Diagnostics; using Newtonsoft.Json; using StackExchange.Profiling.Internal; +using System.Threading; namespace Myshipping.Application.Service.BookingOrder { @@ -1752,6 +1753,8 @@ namespace Myshipping.Application.Service.BookingOrder failNum++; } + + Thread.Sleep(1000); }); msgList.Add($"共计{totalNum} 条 成功{succNum}条 失败:{failNum}");