From 60550aa3ee7029fe21863714d61f6a96cb924b24 Mon Sep 17 00:00:00 2001 From: huangxiaoqiang <1247017146@qq.com> Date: 星期三, 16 四月 2025 16:47:40 +0800 Subject: [PATCH] 1 --- CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_Common/HttpClient/HttpsClient.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_Common/HttpClient/HttpsClient.cs b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_Common/HttpClient/HttpsClient.cs index 5850eab..6ee9682 100644 --- a/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_Common/HttpClient/HttpsClient.cs +++ b/CodeManagement/WMS/WIDESEA_WMSServer/WIDESEA_Common/HttpClient/HttpsClient.cs @@ -16,8 +16,8 @@ static HttpsClient() { - // 璁剧疆瀹氭椂鍣紝姣�10鍒嗛挓娓呯悊涓�娆equestTracker鐨勬暟鎹� - cleanupTimer = new Timer(10 * 60 * 1000); + // 璁剧疆瀹氭椂鍣紝姣�5鍒嗛挓娓呯悊涓�娆equestTracker鐨勬暟鎹� + cleanupTimer = new Timer(5 * 60 * 1000); cleanupTimer.Elapsed += CleanupRequestTracker; cleanupTimer.AutoReset = true; cleanupTimer.Enabled = true; @@ -68,7 +68,7 @@ // 妫�鏌ヨ姹傛鏁板拰鏃堕棿闄愬埗 if (requestTracker.TryGetValue(requestKey, out var requestInfo)) { - if (requestInfo.Count >= 5 && DateTime.Now < requestInfo.LastRequestTime.AddMinutes(3)) + if (requestInfo.Count >= 10 && DateTime.Now < requestInfo.LastRequestTime.AddMinutes(3)) { // 濡傛灉璇锋眰娆℃暟瓒呰繃闄愬埗涓旀湭瓒呰繃10鍒嗛挓锛屾姏鍑哄紓甯� Console.WriteLine("璇锋眰娆℃暟宸茶揪鍒伴檺鍒讹紝璇风◢鍚庡啀璇曘��"); -- Gitblit v1.9.3