From d82c74ca2e845211c95b314134bf7d0ea80e45f7 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 20 八月 2021 18:03:06 +0800
Subject: [PATCH] 2021-08-20 1.增加IOS SDK相关接口对接

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

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index a359d64..e14a122 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -187,7 +187,7 @@
                         //澶勭悊鍓╀笅鐨勬柊澧炲姛鑳�
                         foreach (var newFunction in deviceList.list) 
                         {
-                            MainPage.Log(newFunction.savePath);
+                            newFunction.AssembleStatus();
                             newFunction.SaveFunctionFile();
                             FunctionList.List.IniFunctionList(newFunction.savePath);
                         }
@@ -263,6 +263,7 @@
                     //}
 
                     //======================鑾峰彇鍙瀵硅璁惧鍒楄〃====================
+                    bool isInterphoneType_HDL = false;//鏄惁涓篐DLLinphone鍙瀵硅
                     var videoInfo= VideoSend.GetVideoInfoList();
                     if (videoInfo.Code == StateCode.SUCCESS)
                     {
@@ -274,10 +275,23 @@
                             if (video.interphoneType == InterphoneType.IMOUVISIAL.ToString())
                             {
                                 UI.UI2.PersonalCenter.PirDevice.PirSend.LcSubAccessToken = video.subAccountToken;
+                            } else if (video.interphoneType == InterphoneType.HDL.ToString()) {
+                                isInterphoneType_HDL = true;
                             }
                         }
                     }
-
+                    //======================鑾峰彇Sip璐﹀彿骞朵笖鍒濆鍖朣DK鍙瀵硅璁惧鍒楄〃====================
+                    if (isInterphoneType_HDL)
+                    {
+                        //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
+                        HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id);
+                    }
+                    else
+                    {
+                        Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰�");
+                        //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
+                        HDLLinphone.Current.LogoutAllAccount();
+                    }
                 }
                 catch (Exception ex)
                 {
@@ -340,6 +354,8 @@
                         UI.Music.A31MusicModel.ReadMusicStates();
                         //鎼滅储缃戝叧
                         DriverLayer.Control.Ins.SearchLoaclGateway();
+                        //閲嶆柊杩炴帴mqtt
+                        DAL.Mqtt.MqttClient.DisConnectRemote("鍒锋柊鏁版嵁锛岄噸杩瀖qtt",false);
                         #endregion
                     }
                 }

--
Gitblit v1.8.0