| | |
| | | using Shared.Common.ResponseEntity; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | using Shared.IOS.HDLFVSDK; |
| | | namespace Shared.Phone.UserCenter |
| | | { |
| | | /// <summary> |
| | |
| | | /// <param name="noticeDb">是否通知云端</param> |
| | | public static void ReLoginAgain(string account = "", bool noticeDb = true) |
| | | { |
| | | #if iOS |
| | | //退出全视通登录 |
| | | Shared.IOS.HDLFVSDK.Video.Logout(); |
| | | #endif |
| | | if (Config.Instance.Home.IsVirtually == true) |
| | | { |
| | | //如果是虚拟住宅 |
| | |
| | | if (hadNet == 1) |
| | | { |
| | | //读取隐匿配置 |
| | | HdlBackupLogic.Current.LoadHideOption(); |
| | | //HdlBackupLogic.Current.LoadHideOption(); |
| | | //调试:强制开启后台调试App功能 |
| | | if (UserCenterResourse.HideOption.StartDebugApp == 1) |
| | | { |
| | |
| | | |
| | | //同步云端的网关id,如果本地拥有云端不存在的id,则表示应该被换绑了,直接删除 |
| | | HdlGatewayLogic.Current.SynchronizeDbGateway(); |
| | | |
| | | //读取App最低版本 |
| | | HdlFirmwareUpdateLogic.ReadAppLestVersion(); |
| | | //读取网关最低版本 |
| | | HdlFirmwareUpdateLogic.ReadGatewayLestVersion(); |
| | | } |
| | | |
| | | //断开远程Mqtt连接,重新连接 |
| | |
| | | { |
| | | //住宅切换时,检测网关连接情况 |
| | | CheckGatewayConnection(); |
| | | |
| | | } |
| | | UserCenterResourse.DicReceiveGatewayTest = null; |
| | | } |