HDL Home App 第二版本 旧平台金堂用 正在使用
陈嘉乐
2021-01-06 2fb0c39b09110be4f5a88a8c8004f03fc257f612
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs
@@ -148,7 +148,7 @@
            var listDevice = new List<CommonDevice> { };
            listDevice.Add(doorLock);
            var devTemp = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice);
            if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone)
            if (devTemp.ConcreteType != DeviceConcreteType.IntelligentLocks_H06C)
            {
                return true;
            }
@@ -525,7 +525,7 @@
            var listDevice = new List<CommonDevice> { };
            listDevice.Add(doorLock);
            var devTemp = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice);
            if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone)
            if (devTemp.ConcreteType != DeviceConcreteType.IntelligentLocks_H06C)
            {
                return true;
            }
@@ -1140,6 +1140,16 @@
            return password;
        }
        //// <summary>
        /// 取得某月的最后一天
        /// </summary>
        /// <param name="datetime">要取得月份最后一天的时间</param>
        /// <returns></returns>
        public static DateTime LastDayOfMonth(DateTime datetime)
        {
            return datetime.AddDays(1 - datetime.Day).AddMonths(1).AddDays(-1);
        }
        /// <summary>
        /// 将UNIX时间戳转换成系统时间(精确到秒)
        /// <returns></returns>