From 691b0f2434acc1685b43f873657c9230726ffe6f Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期二, 19 四月 2022 13:38:20 +0800
Subject: [PATCH] 1.增加人脸、可视对讲入口 2.增加清除推送角标数值接口 3.修改初始化全视通、登出全视通

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs |   48 ++++++++++++++++++++++++++++++++++--------------
 1 files changed, 34 insertions(+), 14 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs
index c27635b..459e2bd 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs
@@ -2,7 +2,7 @@
 using System;
 using System.Collections.Generic;
 using System.Text;
-
+using Shared.IOS.HDLFVSDK;
 namespace Shared.Phone.UserCenter
 {
     /// <summary>
@@ -110,6 +110,14 @@
 
             //鍏抽棴杩涘害鏉�
             ProgressBar.Close();
+
+#if iOS
+            //閫�鍑虹櫥褰曞叏瑙嗛��
+            Shared.IOS.HDLFVSDK.Video.Logout();
+            //閲嶆柊鐧诲綍鍏ㄨ閫�
+            Shared.IOS.HDLFVSDK.Video.Init("", residenceId);
+#endif
+
 
             return result;
         }
@@ -293,7 +301,19 @@
                             {
                                 Config.Instance.HomeId = listHouse[0].Id;
                                 Config.Instance.Home = GetHouseByHouseId(listHouse[0].Id);
+#if iOS
+                                //鍒濆鍖栧叏瑙嗛��
+
+                                Shared.IOS.HDLFVSDK.Video.Init("", listHouse[0].Id);
+#endif
                             }
+                        }
+                        else {
+#if iOS
+                            Console.WriteLine(Config.Instance.HomeId);
+                            //鍒濆鍖栧叏瑙嗛��
+                            Shared.IOS.HDLFVSDK.Video.Init("", Config.Instance.HomeId);
+#endif
                         }
                         Config.Instance.Save();
                     }
@@ -306,9 +326,9 @@
             return Config.Instance.HomeFilePathList;
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 鑾峰彇鏈湴浣忓畢鍒楄〃___________________
+#region 鈻� 鑾峰彇鏈湴浣忓畢鍒楄〃___________________
 
         /// <summary>
         /// 鑾峰彇鏈湴浣忓畢鍒楄〃
@@ -372,9 +392,9 @@
             return this.SortHouse(listHome);
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 浣忓畢鎺掑簭___________________________
+#region 鈻� 浣忓畢鎺掑簭___________________________
 
         /// <summary>
         /// 浣忓畢鎺掑簭
@@ -548,9 +568,9 @@
             return maxLength;
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 鍒犻櫎浣忓畢___________________________
+#region 鈻� 鍒犻櫎浣忓畢___________________________
 
         /// <summary>
         /// 鍒犻櫎浣忓畢
@@ -577,9 +597,9 @@
             Config.Instance.Save();
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 鑾峰彇璇ヤ綇瀹呯殑鏂囦欢鍒楄〃_______________
+#region 鈻� 鑾峰彇璇ヤ綇瀹呯殑鏂囦欢鍒楄〃_______________
 
         /// <summary>
         /// 閫氳繃銆恏ouseId銆戣幏鍙栬浣忓畢鐨勬枃浠跺垪琛�
@@ -604,9 +624,9 @@
             return list;
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 涓�鑸柟娉昣__________________________
+#region 鈻� 涓�鑸柟娉昣__________________________
 
         /// <summary>
         /// 鑾峰彇妤煎眰鍚嶇О
@@ -648,9 +668,9 @@
             return $"House_{houseId}.json";
         }
 
-        #endregion
+#endregion
 
-        #region 鈻� 缁撴瀯浣揰____________________________
+#region 鈻� 缁撴瀯浣揰____________________________
 
         /// <summary>
         ///  娣诲姞浣忓畢鐨勫惎鍔ㄥ弬鏁�
@@ -681,6 +701,6 @@
             /// </summary>
             public string Id = string.Empty;
         }
-        #endregion
+#endregion
     }
 }

--
Gitblit v1.8.0