20231023危大工程清单分部分项修改为基础信息中分部分项设置

This commit is contained in:
2023-10-23 16:05:02 +08:00
parent 33d515c36a
commit f409a4cca2
9 changed files with 162 additions and 127 deletions
+2
View File
@@ -18,6 +18,8 @@ namespace BLL
/// <returns></returns>
public static string Http(string url, string method = "GET", string contenttype = "application/json;charset=utf-8", Hashtable header = null, string data = null)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 ;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Method = string.IsNullOrEmpty(method) ? "GET" : method;
request.ContentType = string.IsNullOrEmpty(contenttype) ? "application/json;charset=utf-8" : contenttype;