From 49add64d7f25448baa06ac5a9ebbeac0a3ae97e0 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 13 一月 2020 13:50:29 +0800 Subject: [PATCH] Version 2.50113 1.优化更新。 2.第一次引导或者添加住宅,默认添加2个房间。编辑住宅不处理。 3.设备名超过20字节限制。 4.修复编辑住宅名字重复不提示问题。 5.优化添加住宅逻辑。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs index e3c9da0..1aa9471 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Schedule/AddSchedule.cs @@ -577,7 +577,10 @@ //new Alert ("", "璇峰~鍐欏畾鏃跺櫒鍚嶇О!", "Close").Show (); new Alert ("", "Please set name for the timer!", "Close").Show (); return; - } else if (listTimer.Find ((obj) => obj.TimerName == timerTemp.TimerName) != null) {//2020-01-09 缂栬緫鐨勬椂鍊欎篃鎻愮ず閲嶅鍚嶅瓧 + } else if (listTimer.Find ((obj) => obj.TimerName == timerTemp.TimerName) != null && !isEdit) {//2020-01-09 缂栬緫鐨勬椂鍊欎篃鎻愮ず閲嶅鍚嶅瓧 + //if (isEdit) { + + //} new Alert ("", "The timer name already exists. Please change it before saving it.", "Close").Show (); return; } @@ -636,7 +639,7 @@ ResponsePack revertObj = null; if (isEdit) { revertObj = MainPage.RequestHttps (API.EditTimer, requestJson); - } else { + } else { revertObj = MainPage.RequestHttps (API.AddTimer, requestJson); } -- Gitblit v1.8.0