From dc9a1b15bb69227e19afc070adf58156a362d2a2 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 30 九月 2024 17:07:58 +0800
Subject: [PATCH] 安卓可视对讲响铃,

---
 HDL_ON/DAL/DriverLayer/Control.cs |   21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/Control.cs b/HDL_ON/DAL/DriverLayer/Control.cs
index 39db401..a887526 100644
--- a/HDL_ON/DAL/DriverLayer/Control.cs
+++ b/HDL_ON/DAL/DriverLayer/Control.cs
@@ -276,8 +276,8 @@
         public void SearchLoaclGateway()
         {
             //2021-01-15 : 浣忓畢娌℃湁缁戝畾缃戝叧鐨勬椂鍊欎笉鐢ㄦ悳绱紝骞朵笖涓嶈兘閾炬帴mqtt
-            if (DB_ResidenceData.Instance.HomeGateway == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.gatewayId) ||
-                    !UserInfo.Current.IsLogin)
+            if (DB_ResidenceData.Instance.HomeGateway == null || string.IsNullOrEmpty(DB_ResidenceData.Instance.HomeGateway.gatewayId))
+                //|| !UserInfo.Current.IsLogin)
             {
                 return;
             }
@@ -444,7 +444,7 @@
 
 
             //濡傛灉鏄帶鍒惰皟鍏夌殑寮�鏃讹紝浜害鍊间笉鑳戒负0
-            if (commandDictionary.Count > 2)
+            if (commandDictionary.Count >= 2)
             {
                 if (commandDictionary.ContainsKey(FunctionAttributeKey.OnOff) && commandDictionary.ContainsKey(FunctionAttributeKey.Brightness))
                 {
@@ -978,10 +978,10 @@
         /// <returns></returns>
         public void ConvertReceiveData(byte[] receiveBytes, string ip)
         {
-            if (!UserInfo.Current.IsLogin)
-            {
-                return;
-            }
+            //if (!UserInfo.Current.IsLogin)
+            //{
+            //    return;
+            //}
             var reString = Encoding.UTF8.GetString(receiveBytes);
             AnalysisReceiveData(reString, receiveBytes, ip);
         }
@@ -1124,7 +1124,7 @@
                         //2021-09-23 鏂板鑾峰彇褰撳墠缃戝叧鏄惁鏈湴鍔犲瘑
                         Ins.IsLocalEncrypt = device.isLocalEncrypt;
                         //MainPage.Log("缃戝叧鏈湴鍔犲瘑鐘舵�侊細" + device.local_encrypt.ToString());
-                        //鐧诲綍缃戝叧Tcp
+                        //鐧诲綍缃戝叧Tcp  tcp杩炴帴缃戝叧
                         //OpenTcpClent();
 
 
@@ -1363,6 +1363,9 @@
                                 AcstParentPage.UpdateAcstSubInfo(localFunction);
                                 WaterHeaterJinmaoPage.UpdateStatus();
                                 break;
+                            case SPK.InverterJinmao:
+                                InverterJinmaoPage.UpdateStatus(localFunction);
+                                break;
                             case SPK.AirSwitch:
                                 AirSwitchPage.UpdataState(localFunction);
                                 if (localFunction.GetAttribute(FunctionAttributeKey.Power) != null)//濡傛灉鏄甫鐢甸噺鐨勭┖寮�涔熻鏇存柊鑳芥簮鐣岄潰
@@ -1428,7 +1431,7 @@
                                 VenetianBlindsPage.UpdataState(localFunction);
                                 break;
                             case SPK.AcStandard:
-                            case SPK.HvacAC:
+                            case SPK.HvacAC:case SPK.HvacAcPanel:
                             case SPK.AcIr:
                                 Stan.HdlDeviceStatuPushLogic.Current.UpdateDeviceStatu(updateTemp.sid, updateTemp.status);
                                 if (localFunction != null)

--
Gitblit v1.8.0