From efad979b6fae76fb37a4de7e94e6bac0a85cb72c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 30 十一月 2021 13:14:28 +0800
Subject: [PATCH] 2021-11-30 1.修复乐橙Android,没调用拒接接口问题。

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

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index 65338b6..0bb6e41 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -56,7 +56,9 @@
 
             return result;
         }
-
+        /// <summary>
+        /// 涓嬭浇鏁版嵁瀹屾垚鏍囪
+        /// </summary>
         public bool DownloadDataComplete = true;
         /// <summary>
         /// 涓嬭浇鏁版嵁
@@ -168,7 +170,7 @@
                             for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;)
                             {
                                 var localFunction = FunctionList.List.GetDeviceFunctionList()[i];
-                                if (localFunction.Spk_Prefix == FunctionCategory.Music || string.IsNullOrEmpty(localFunction.Spk_Prefix))
+                                if (SPK.MusicSpkList().Contains(localFunction.spk))
                                 {
                                     i++;
                                     continue;
@@ -277,19 +279,11 @@
                                 UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken;
                             } else if (video.interphoneType == InterphoneType.HDL.ToString()) {
                                 isInterphoneType_HDL = true;
-                            }
-                            else if(video.interphoneType == InterphoneType.HDL.ToString())
-                            {
                                 DB_ResidenceData.Instance.SupportFacePass = true;
-                                DB_ResidenceData.Instance.SaveResidenceData(); 
+                                DB_ResidenceData.Instance.SaveResidenceData();
                             }
                         }
                     }
-
-
-                    //======================瀹夐槻====================
-                    GetSecurityList();
-                    //======================SIP璐﹀彿====================
 
                     //======================鑾峰彇Sip璐﹀彿骞朵笖鍒濆鍖朣DK鍙瀵硅璁惧鍒楄〃====================
                     //濡傛灉妫�娴嬬嚎绋嬫病鍚姩锛屾墠缁х画涓嬮潰鎿嶄綔 鍥犱负App鏈夊彲鑳藉垰鍚姩椹笂鏀跺埌鎺ㄩ�佷簡锛岀劧鍚庢墠鎵ц鍒拌繖閲�
@@ -307,7 +301,10 @@
                             HDLLinphone.Current.LogoutAllAccount();
                         }
                     }
-                        
+
+                    //======================瀹夐槻====================
+                    GetSecurityList();
+
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.8.0