From c759a142a8e8926d4c018baf69fb8730b05735bb Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 5 Jul 2024 15:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9MSK=20API=20=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=8F=91=E9=80=81=E5=A2=9E=E5=8A=A0=201=E7=A7=92?= =?UTF-8?q?=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingMSKAPIService.cs | 3 +++ .../Service/BookingOrder/BookingMSKSPOTAPIService.cs | 3 +++ 2 files changed, 6 insertions(+) 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}");