From f49fa4b5027cfdc27b429985d023e8002abcca2e Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 05 十一月 2025 23:54:12 +0800
Subject: [PATCH] 1
---
代码管理/WMS/WIDESEA_WMSServer/WIDESEA_Core/Helper/HttpHelper.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 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 b4b51b2..8c675ac 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"
@@ -11,6 +11,9 @@
{
public class HttpHelper
{
+
+ private const int Timeout = 60 * 1000;
+
public static async Task<string> GetAsync(string serviceAddress, string contentType = "application/json", Dictionary<string, string>? headers = null)
{
try
@@ -102,6 +105,9 @@
}
return null;
}
+
+
+
/// <summary>
/// post璇锋眰
/// </summary>
@@ -117,6 +123,7 @@
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
+ request.Timeout = Timeout;
request.Method = "POST";
request.ContentType = "application/json; charset=UTF-8";
parm = parm ?? "";
--
Gitblit v1.9.3