From 6fe1c5ebeb8312edc479a4576f05d80c5051a6c6 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 19 七月 2023 19:47:00 +0800
Subject: [PATCH] 炫彩功能优化

---
 HDL_ON/Common/ApiUtlis.cs |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index 46b4178..e0a8a6a 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -257,8 +257,10 @@
                                     string videoList = videoInfo.Data.ToString();
                                     FunctionList.List.videoIntercom = JsonConvert.DeserializeObject<List<UI.UI2.FuntionControlView.Video.Video>>(videoList);
 
-                                    foreach (var video in FunctionList.List.videoIntercom)
+                                    for(int i =0;i< FunctionList.List.videoIntercom.Count;i++)
                                     {
+                                        var video = FunctionList.List.videoIntercom[i];
+
                                         if (video.interphoneType == InterphoneType.IMOUVISIAL.ToString())
                                         {
                                             UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken;
@@ -272,11 +274,23 @@
                                         }
                                         else if (video.interphoneType == InterphoneType.FREEVIEW.ToString())
                                         {
+#if __IOS__
+                                            try
+                                            {
+                                                FunctionList.List.videoIntercom.Remove(video);
+                                                --i;
+                                            }catch(Exception ex)
+                                            {
+                                                MainPage.Log($"ios 鍏ㄨ閫氬紓甯� : {ex.Message}");
+                                            }
+
+#else
                                             //涓哄叏瑙嗛�氬彲瑙嗗璁�
-                                            //DB_ResidenceData.Instance.SupportFacePass = true;
-                                            //Entity.DB_ResidenceData.Instance.SupportVisitorManage = true;
-                                            //Entity.DB_ResidenceData.Instance.SupportFVDevice = true;
-                                            //isInterphoneType_FREEVIEW = true;
+                                            DB_ResidenceData.Instance.SupportFacePass = true;
+                                            Entity.DB_ResidenceData.Instance.SupportVisitorManage = true;
+                                            Entity.DB_ResidenceData.Instance.SupportFVDevice = true;
+                                            isInterphoneType_FREEVIEW = true;
+#endif
                                         }
                                     }
                                 }
@@ -354,6 +368,7 @@
                         }
 
 
+                        //======================缇ゆ帶====================
                         if (DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl)
                         {
                             var pack = Ins.HttpRequest.GetGroupControlList();
@@ -386,6 +401,7 @@
                                                 }
                                                 readSidList.Clear();
                                             }
+                                            //FunctionList.List.Functions.AddRange(FunctionList.List.groupControls);
                                         }
                                         if (readSidList.Count > 0)
                                         {

--
Gitblit v1.8.0