From e34270918f2e831048114ecdfcfec3e3cdbb6fd7 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 26 五月 2022 17:42:58 +0800
Subject: [PATCH] Merge branch 'release0123' into wxr0114

---
 HDL_ON/Common/ApiUtlis.cs |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index ae6c314..181c03b 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -159,7 +159,7 @@
                         endTime = DateTime.Now.AddSeconds(5);
 
                         MainPage.Log($"璇诲彇璁惧淇℃伅鎴愬姛");
-                        var deviceList = Newtonsoft.Json.JsonConvert.DeserializeObject<DevcieApiPack>(deviceResult.Data.ToString());
+                        var deviceList = JsonConvert.DeserializeObject<DevcieApiPack>(deviceResult.Data.ToString());
                         if (deviceList == null)
                         {
                             deviceList = new DevcieApiPack();
@@ -171,7 +171,7 @@
                                 var deviceResult2 = Ins.HttpRequest.GetDeviceList("30", Convert.ToInt32(deviceList.pageNo) + 1 + "");
                                 if (deviceResult2.Code == StateCode.SUCCESS)
                                 {
-                                    var deviceList2 = Newtonsoft.Json.JsonConvert.DeserializeObject<DevcieApiPack>(deviceResult.Data.ToString());
+                                    var deviceList2 = JsonConvert.DeserializeObject<DevcieApiPack>(deviceResult.Data.ToString());
                                     deviceList.pageNo = deviceList2.pageNo;
                                     deviceList.list.AddRange(deviceList2.list);
                                 }
@@ -306,9 +306,11 @@
                             }
                             else if (video.interphoneType == InterphoneType.FREEVIEW.ToString())
                             {//涓哄叏瑙嗛�氬彲瑙嗗璁�
+                                DB_ResidenceData.Instance.SupportFacePass = true;
                                 Entity.DB_ResidenceData.Instance.SupportVisitorManage = true;
                                 Entity.DB_ResidenceData.Instance.SupportFVDevice = true;
 
+                                //isInterphoneType_HDL = true;
                                 isInterphoneType_FREEVIEW = true;
 
                             }
@@ -322,23 +324,34 @@
                         if (isInterphoneType_HDL)
                         {
                             //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
-                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id);
-
+                            HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo();
+                            callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
+                            callVideoInfo.InterphoneType = InterphoneType.HDL.ToString();
+                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo);
+                        }
+                        else if (isInterphoneType_FREEVIEW)
+                        {
+                            //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
+                            HDLCallVideoInfo callVideoInfo = new HDLCallVideoInfo();
+                            callVideoInfo.HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
+                            callVideoInfo.InterphoneType = InterphoneType.FREEVIEW.ToString();
+                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(callVideoInfo);
                         }
                         else
                         {
                             Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰曟墍鏈夎处鍙�");
                             //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
                             HDLLinphone.Current.LogoutAllAccount();
-
                         }
                     }
 
                     //======================鐧诲綍鍏ㄨ閫�====================
                     if (isInterphoneType_FREEVIEW)
                     {
+#if __IOS__
                         //鐧诲綍鍏ㄨ閫�
                         Shared.IOS.HDLFVSDK.Video.Init("", DB_ResidenceData.Instance.CurrentRegion.id);
+#endif
                     }
 
 
@@ -408,12 +421,12 @@
                 {
                     if (DB_ResidenceData.Instance.CurrentRegion != null)
                     {
-                        #region 璇诲彇鏈湴鏁版嵁
+#region 璇诲彇鏈湴鏁版嵁
                         //鎼滅储缃戝叧
                         DriverLayer.Control.Ins.SearchLoaclGateway();
                         //閲嶆柊杩炴帴mqtt
                         DAL.Mqtt.MqttClient.DisConnectRemote("鍒锋柊鏁版嵁锛岄噸杩瀖qtt",false);
-                        #endregion
+#endregion
 
                     }
                 }

--
Gitblit v1.8.0