1
huanghongfeng
2025-11-05 f49fa4b5027cfdc27b429985d023e8002abcca2e
代码管理/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 ?? "";