HDL Home App 第二版本 旧平台金堂用 正在使用
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlResidenceLogic.cs
@@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using Shared.IOS.HDLFVSDK;
namespace Shared.Phone.UserCenter
{
    /// <summary>
@@ -110,6 +110,14 @@
            //关闭进度条
            ProgressBar.Close();
#if iOS
            //退出登录全视通
            Shared.IOS.HDLFVSDK.Video.Logout();
            //重新登录全视通
            Shared.IOS.HDLFVSDK.Video.Init("", residenceId);
#endif
            return result;
        }
@@ -293,8 +301,20 @@
                            {
                                Config.Instance.HomeId = listHouse[0].Id;
                                Config.Instance.Home = GetHouseByHouseId(listHouse[0].Id);
#if iOS
                                //初始化全视通
                                Shared.IOS.HDLFVSDK.Video.Init("", listHouse[0].Id);
#endif
                            }
                        }
                        else {
#if iOS
                            Console.WriteLine(Config.Instance.HomeId);
                            //初始化全视通
                            Shared.IOS.HDLFVSDK.Video.Init("", Config.Instance.HomeId);
#endif
                        }
                        Config.Instance.Save();
                    }
                }