| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | //#if __IOS__ |
| | | // //登录全视通 |
| | | // Shared.IOS.HDLFVSDK.Video.Init("", UserInfo.Current.ID); |
| | | // //Shared.IOS.HDLFVSDK.Video.Init("", "466196456122637"); |
| | | //#endif |
| | | UserInfo.Current.SaveUserInfo(); |
| | | MainPage.Log("获取用户信息成功。"); |
| | | } |
| | |
| | | bool isProduce = true; |
| | | if (HttpUtil.GlobalRequestHttpsHost == "https://test-gz.hdlcontrol.com") |
| | | { |
| | | #if __IOS__ |
| | | isProduce = true; |
| | | |
| | | #else |
| | | isProduce = false; |
| | | |
| | | #endif |
| | | } |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.PushDeviceToken)) |
| | | { |
| | |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | return HttpUtil.RequestHttpsPostFroHome(NewAPI.Api_Post_GetCustomerInfo, requestJson); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取三方账户详情(可视对讲) |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string GetVideoThirdPartUserInfo() |
| | | { |
| | | Dictionary<string, object> d = new Dictionary<string, object>(); |
| | | d.Add("homeId", DB_ResidenceData.Instance.CurrentRegion.id); |
| | | |
| | | var requestJson = HttpUtil.GetSignRequestJson(d); |
| | | var resultObj = HttpUtil.RequestHttpsPostFroHome(NewAPI.API_POST_VideoDevice_Third_Account, requestJson); |
| | | if (resultObj.Code == StateCode.SUCCESS) |
| | | { |
| | | var info = Newtonsoft.Json.JsonConvert.DeserializeObject<UserInfoThirdPartVideo>(resultObj.Data.ToString()); |
| | | return info.extUserId; |
| | | } |
| | | else { |
| | | return ""; |
| | | } |
| | | } |
| | | } |
| | | } |