From f382eaff90d5126387b5616b602b4168b37ad21c Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 12 一月 2021 16:54:12 +0800 Subject: [PATCH] Merge branch 'master' into wjc --- Crabtree/SmartHome/HDL/Common/HttpUtil/HttpUtil.cs | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpUtil.cs b/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpUtil.cs index 18094c9..d391493 100644 --- a/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpUtil.cs +++ b/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpUtil.cs @@ -391,7 +391,7 @@ /// <param name="replaceToken"></param> /// <param name="mTimeout"></param> /// <returns></returns> - public static ResponsePackNew RequestHttpsUpload(Method method, string apiPath, object bodyParameterObject = null, Dictionary<string, object> queryDictionary = null, Dictionary<string, object> urlSegmentDictionary = null, string urlHead = "", string replaceToken = "", int mTimeout = 10) + public static ResponsePackNew RequestHttpsUpload(Method method, string apiPath, object bodyParameterObject = null, Dictionary<string, object> queryDictionary = null, Dictionary<string, object> urlSegmentDictionary = null, string urlHead = "", string replaceToken = "", int mTimeout = 20) { #region HttpWebRequest try @@ -408,7 +408,6 @@ ////**************娴嬭瘯************** RestClient client = new RestClient(requestFullUrl); - //client.Timeout = mTimeout * 1000; RestRequest request = new RestRequest(method); request.Timeout = mTimeout * 1000; //request.AddHeader ("content-type", "application/json"); -- Gitblit v1.8.0