| | |
| | | /// </summary> |
| | | public static Action<bool> LogicAction = null; |
| | | /// <summary> |
| | | /// 更新当前门锁涉及的状态【主要用于门锁操作常开模式的回调】 |
| | | /// </summary> |
| | | public static Action<string, bool> UpdateCurrentDoorlockAction = null; |
| | | /// <summary> |
| | | /// 网关(门锁)所在的时间 |
| | | /// </summary> |
| | | public static DateTime DoorlockZoneTime = DateTime.Now; |
| | |
| | | //上报“常开模式”已被取消 |
| | | Application.RunOnMainThread(() => { CommonPage.Loading.Start(""); }); |
| | | |
| | | if (haveLogic) |
| | | { |
| | | //此处删除温居城的常开模式特殊逻辑 |
| | | var resTemp1 = await Shared.Phone.Device.Logic.SkipView.GetLogicAll(doorLock); |
| | | } |
| | | |
| | | //app重新开启“常开模式” |
| | | var result = await doorLock.SetNormallyOpenModeFuncAsync(true); |
| | | if (result == null || result.defaultControlResponseData == null) |
| | |
| | | } |
| | | else |
| | | { |
| | | //创建常开模式的特殊逻辑 |
| | | var resu = await Shared.Phone.Device.Logic.SkipView.LockAddModifyLogic(DoorLockCommonInfo.NormallyOpenModeInvalidTime, doorLock); |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | string msg0 = Language.StringByID(R.MyInternationalizationString.OpenNormallyOpenModeSuccess); |