From b1b3f47f3eeff8536b1a2851781da0b04f346fef Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 18 五月 2022 16:04:14 +0800
Subject: [PATCH] Merge branch 'wxr1215' into dev

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

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index 35d8c7d..b53302a 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -330,6 +330,8 @@
                             Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰曟墍鏈夎处鍙�");
                             //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
                             HDLLinphone.Current.LogoutAllAccount();
+                            //鐧诲綍鍏ㄨ閫氾紙鍏ㄨ閫氫笉鏍规嵁浣忓畢id鍙樺寲锛岄��鍑虹櫥褰曚細閫�鍑烘墍鏈塻ip璐﹀彿锛屾墍浠ユ澶勯渶瑕侀噸鏂扮櫥褰曞叏瑙嗛�氾級
+                            //Shared.IOS.HDLFVSDK.Video.Init("", UserInfo.Current.ID);
 
                         }
                     }
@@ -338,8 +340,24 @@
                     if (isInterphoneType_FREEVIEW)
                     {
 #if __IOS__
-                        //鐧诲綍鍏ㄨ閫�
-                        Shared.IOS.HDLFVSDK.Video.Init("", DB_ResidenceData.Instance.CurrentRegion.id);
+                        //鑾峰彇鍏ㄨ閫氳处鎴蜂俊鎭�
+                        string FVUserId = Ins.HttpRequest.GetVideoThirdPartUserInfo();
+                        if (FVUserId!=null)
+                        {
+
+                            //鐧诲綍鍏ㄨ閫�
+                            Shared.IOS.HDLFVSDK.Video.Init("", FVUserId);
+
+                        }
+
+
+#endif
+                    }
+                    else {
+#if __IOS__
+                        //涓嶆敮鎸佸叏瑙嗛�氾紙鐢ㄤ簬鍦╥os app鐢熷懡鍛ㄦ湡鍒ゆ柇鏄惁璋冪敤鍏ㄨ閫氭柟娉曪級
+                        Entity.DB_ResidenceData.Instance.SupportFVDevice = false;
+
 #endif
                     }
 
@@ -489,7 +507,6 @@
         {
             var pack = Ins.HttpRequest.GetSecurityList();
         }
-
 
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0