| | |
| | | }); |
| | | } |
| | | ///<summary> |
| | | /// 删除逻辑 |
| | | /// 删除逻辑(0成功,其它值:失败) |
| | | /// </summary> |
| | | public static async System.Threading.Tasks.Task<int> DelLogic(int LogicId) |
| | | { |
| | |
| | | ["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") |
| | | { |
| | |
| | | ["AccountName"] = dictionary["AccountName"], |
| | | |
| | | }; |
| | | |
| | | if (dictionary.ContainsKey("Option4")) |
| | | { |
| | | accounts1.Add("Option4",dictionary["Option4"]); |
| | | } |
| | | if (dictionary.ContainsKey("Option2")) |
| | | { |
| | | accounts1.Add("Option2", int.Parse(dictionary["Option2"])); |
| | | } |
| | | accounts.Add(accounts1); |
| | | } |
| | | } |
| | |
| | | /// <param name="logic">逻辑对象</param> |
| | | public static void Zj(bool tag, Common.Logic logic) |
| | | { |
| | | |
| | | if (string.IsNullOrEmpty(logic.LogicCustomPushText)) |
| | | { |
| | | ///默认推送自定义内容 |
| | | string str = logic.LogicName + Language.StringByID(R.MyInternationalizationString.defaulttext); |
| | | logic.LogicCustomPushText = str; |
| | | } |
| | | |
| | | new System.Threading.Thread(() => |
| | | { |
| | | if (logic.LogicId != 0) |