wxr
2023-07-27 56ec341b21a32b1a7529267b15d6bb8ef392bd6b
tcp更新
2个文件已修改
22 ■■■■■ 已修改文件
HDL_ON/DAL/DriverLayer/Control_TcpClient.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/DAL/DriverLayer/Control_TcpClient.cs
@@ -224,6 +224,14 @@
        /// <param name="bytes">需要发送的字节</param>
        public void SendMessage(byte[] bytes)
        {
            if(_tcpClient == null)
            {
                return;
            }
            if (!_tcpClient.Connected)
            {
                return;
            }
            if (heartBeatLogIdList.Count > 3)
            {
                try
HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs
@@ -1450,13 +1450,13 @@
                    string url = $"h5/index.html?homeId={DB_ResidenceData.Instance.CurrentRegion.id}&token={UserInfo.Current.AccessToken}&refresh_token={UserInfo.Current.RefreshToken}&url={OnAppConfig.Instance.RequestHttpsHost}&language={lz}";
                    Inverter.Ins.ShowWebviewFormUrl(url);
                    new System.Threading.Thread(() =>
                    {
                        System.Threading.Thread.Sleep(2000);
                        var status = new Dictionary<string, object> { ["method"] = "weather", ["data"] = MainPage.cityInfo.weather };
                        Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')");
                    })
                    { IsBackground = true }.Start();
                    //new System.Threading.Thread(() =>
                    //{
                    //    System.Threading.Thread.Sleep(2000);
                    //    var status = new Dictionary<string, object> { ["method"] = "weather", ["data"] = "MainPage.cityInfo.weather" };
                    //    Inverter.Ins.H5Page.CallJS($"nativeToJs(\'{Newtonsoft.Json.JsonConvert.SerializeObject(status)}\')");
                    //})
                    //{ IsBackground = true }.Start();
                    Inverter.Ins.H5Page.JSToNativeAction = (dictionary) =>
                    {
#if __IOS__