xm
2020-07-20 b02e8275a21dc06bf54b66273485d44e007a2616
ZigbeeApp/Shared/Phone/Device/Logic/Send.cs
old mode 100755 new mode 100644
@@ -7,6 +7,7 @@
using System.Collections.Specialized;
using System.Net;
using System.IO;
using System.Diagnostics.CodeAnalysis;
namespace Shared.Phone.Device.Logic
{
@@ -63,7 +64,8 @@
                    jObject.Add("Data", jObjectdata1);
                    mainGateWay?.Send("Logic/GetLogicList", jObject.ToString());
                }
                catch(Exception e) {
                catch (Exception e)
                {
                    var d = e.Message;
                }
                //await System.Threading.Tasks.Task.Run(async () =>
@@ -1242,7 +1244,10 @@
            request.Method = method; //请求方式为POST/GET
            request.ContentType = "application/json"; 
            request.Timeout = second * 1000;//超时时间
            if (_bool) {
            try
            {
                if (_bool)
                {
                //用于高胜可视对讲接口
                request.Headers.Add("Authorization", Config.Instance.Token);
            }
@@ -1268,6 +1273,12 @@
            string content = sr.ReadToEnd(); //获得响应字符串
            return content;
        }
            catch
            {
                return null;
            }
        }
        /// <summary>
        /// 请求服务器的方法
        /// </summary>