| | |
| | | ["RemindTime"] = int.Parse(dictionary["RemindTime"]), |
| | | ["EnDelay"] = int.Parse(dictionary["EnDelay"]), |
| | | ["DelayTime"] = int.Parse(dictionary["DelayTime"]), |
| | | ["DoorLockOpenDelayTime"] = int.Parse(dictionary["DoorLockOpenDelayTime"]), |
| | | }; |
| | | if (dictionary["DateType"].ToString() == "0") |
| | | { |
| | |
| | | } |
| | | catch { } |
| | | var dateTime = DateTime.Now; |
| | | while ((DateTime.Now - dateTime).TotalMilliseconds < 8 * 1000) |
| | | while ((DateTime.Now - dateTime).TotalMilliseconds < 5* 1000) |
| | | { |
| | | await System.Threading.Tasks.Task.Delay(100); |
| | | if (sum == listLogic.Count) |
| | |
| | | { |
| | | string s = null; |
| | | var str = await WebClientAsync(0, CommonPage.RequestHttpsHost + "/App/GetHomePager");//不同区域域名前缀不一样 |
| | | // var str = await WebClientAsync(0, "https://global.hdlcontrol.com/HangZhouHdlCloudApi/App/GetHomePager"); |
| | | |
| | | var jObject = JObject.Parse(str); |
| | | if (jObject == null || jObject["StateCode"].ToString() != "Success") |
| | | { |
| | |
| | | residential.IsOtherAccountCtrl = true; |
| | | residential.doorlockmac = doorlockMac; |
| | | residential.Url = CommonPage.RequestHttpsHost + "/App/GetSharedHomeApiControl"; |
| | | //residential.Url = "https://global.hdlcontrol.com/HangZhouHdlCloudApi/App/GetSharedHomeApiControl"; |
| | | s = await ReadUserDoorLock(residential); |
| | | } |
| | | else |
| | | { |
| | | residential.Url = CommonPage.RequestHttpsHost + "/DoorLock/GetDoorLockPager"; |
| | | //residential.Url = "https://global.hdlcontrol.com/HangZhouHdlCloudApi/DoorLock/GetDoorLockPager"; |
| | | residential.Token = Config.Instance.Token; |
| | | residential.Id = Config.Instance.HomeId; |
| | | residential.IsOtherAccountCtrl = false; |