From 5c238fa340e7a86834c65cf66c514f32d6d28f4a Mon Sep 17 00:00:00 2001
From: helongyang <647556386@qq.com>
Date: 星期五, 26 十二月 2025 19:04:45 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs"
index c020a67..2f0ba22 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs"
@@ -112,7 +112,11 @@
                     httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
                     using HttpClient httpClient = new HttpClient();
                     httpClient.Timeout = new TimeSpan(0, 0, 60);
-
+                    if (serviceAddress.Contains("cimforce/AtomJsonService"))
+                    {
+                        int timeout = AppSettings.Get("ErpRequestTime").ObjToInt();
+                        httpClient.Timeout = new TimeSpan(0, 0, timeout);
+                    }
                     if (headers != null)
                     {
                         foreach (var header in headers)

--
Gitblit v1.9.3