| | |
| | | eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString(); |
| | | eSVideoInfo.Lc_Location = OnAppConfig.Instance.RequestHttpsHost.Contains("China") ? 0 : 1; |
| | | eSVideoInfo.Lc_PlayToken = json["token"].ToString(); |
| | | eSVideoInfo.Lc_Psk = json["cname"].ToString(); |
| | | //eSVideoInfo.Lc_Psk = json["cname"].ToString(); |
| | | eSVideoInfo.Lc_Psk = json["psk"].ToString();//2021-10-15 PSK字段不能取cname |
| | | } |
| | | else if (interphoneTypeEnum == InterphoneType.EZVIZ.ToString()) |
| | | { |
| | |
| | | DB_ResidenceData.Instance.EixtAccount(); |
| | | //4.注销HDLSIP账号登录 2021-08-20 |
| | | HDLLinphone.Current.LogoutAllAccount(); |
| | | #if __IOS__ |
| | | //5.清空Siri共享数据信息 |
| | | new Other.SkipControl().SetData(false, "", "", "",""); |
| | | var sDM = new SiriKit.SceneDateManager(); |
| | | Console.WriteLine($"IsLogin:{sDM.IsLgoin};accessToken:{sDM.AccessToken};refreshToken:{sDM.RefreshToken};RegionUrl:{sDM.RegionUrl};HomeId:{sDM.HomeId}"); |
| | | #endif |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | } |
| | | MainPage.CurPageIndex = 9999; |
| | | MainPage.UserBasePage.ChooseCollection(); |
| | | #if __IOS__ |
| | | var sdm = new SiriKit.SceneDateManager(); |
| | | sdm.RegionUrl = DB_ResidenceData.Instance.CurrentRegion.regionUrl; |
| | | sdm.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | #endif |
| | | } |
| | | } |
| | | //Dialog |
| | |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region ■ 常用方法_______________________ |
| | | #region ■ 常用方法_______________________ |
| | | /// <summary> |
| | | /// 设置下划线按钮状态 |
| | | /// 统一封装设置方法 |
| | |
| | | Control.Ins.SearchLoaclGateway(); |
| | | } |
| | | } |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 跳转打开萤石云方法 |
| | | #region 跳转打开萤石云方法 |
| | | |
| | | /// <summary> |
| | | /// 获取子账号token并跳转设备列表页面 |
| | |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | #endregion |
| | | #endregion |
| | | } |
| | | } |