From 6f17148ec371799405ff351ba8947ba9fdece797 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 12 一月 2021 16:50:17 +0800 Subject: [PATCH] 2021-01-12 1.备份上传和下载相关接口调整,和优化。 --- 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