From 3c9ad99d4a5eeeb53f7380315197e7133f84d10c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 27 十月 2020 14:57:33 +0800 Subject: [PATCH] 2020-10-27 1V2.510271 1.密码规则修改,修改为:密码必须为8-20个字符,包含字母、数字和符号。 2.APP本地增加登录,密码错误锁定,连续错误5次登录锁定,锁定5分钟。 3.登录界面,增加登录账号的邮箱格式匹配检测。 4.增加iOS越狱和Androidr Root检测,强制关闭APP。 --- Crabtree/SmartHome/HDL/Operation/ResponseEntity/RegionInfoRes.cs | 100 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 94 insertions(+), 6 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/ResponseEntity/RegionInfoRes.cs b/Crabtree/SmartHome/HDL/Operation/ResponseEntity/RegionInfoRes.cs index d9c4f61..b31d6a1 100644 --- a/Crabtree/SmartHome/HDL/Operation/ResponseEntity/RegionInfoRes.cs +++ b/Crabtree/SmartHome/HDL/Operation/ResponseEntity/RegionInfoRes.cs @@ -1,15 +1,103 @@ 锘縰sing System; - +using System.Collections.Generic; namespace Shared -{ +{ + [Serializable] + public class RegionInfoRes + { + /// <summary> + /// 淇鏃PP鏁版嵁涓㈠け 鍏煎鎭㈠ + /// </summary> + public int RegionID + { + set + { + if (value != 0) + Id = value.ToString(); + } + } + + public string RegionName + { + set + { + if (!string.IsNullOrEmpty(value)) + Name = value; + } + } + + public string MAC + { + set + { + if (!string.IsNullOrEmpty(value)) + { + if (HomeGateways != null && HomeGateways.Count > 0) + { + HomeGateways[0].GatewayUniqueId = value; + } + else + { + var mHomeGateways = new HomeGateways() { GatewayUniqueId = value }; + var mList = new List<HomeGateways>(); + mList.Add(mHomeGateways); + HomeGateways = mList; + } + } + } + } + + + public string Id { get; set; } + + public string Name { get; set; } + + //public string MAC { get; set; } + public List<HomeGateways> HomeGateways = new List<HomeGateways> (); + + /// <summary> + /// 鏄惁涓哄叾浠栦富鐢ㄦ埛鍒嗕韩杩囨潵鐨勪綇瀹� + /// </summary> + public bool IsOthreShare { get; set; } + /// <summary> + /// 褰撳墠浣忓畢鏄叾浠栦富甯愬彿鍒嗕韩杩囨潵鐨勪富甯愬彿鐨勫垎甯冨紡Id + /// </summary> + public string MainUserDistributedMark { get; set; } + /// <summary> + /// 浠呭瓙璐﹀彿鐧婚檰鐨勬椂鍊欎娇鐢�,褰撱�怚sOthreShare銆戜负"true"锛屽苟涓斻�怉ccountType銆戜负"1"鏃讹紝璇ヨ处鍙锋嫢鏈夌鐞嗗憳鏉冮檺 + /// </summary> + public int AccountType { get; set; } + /// <summary> + /// 缁忓害 + /// </summary> + public double Longitude = 0; + /// <summary> + /// 绾害 + /// </summary> + public double Latitude = 0; + + } + [Serializable] - public class RegionInfoRes + public class HomeGateways { + public string GatewayUniqueId { get; set; } + + } + + + [Serializable] + public class ResidenceRes { - public string RegionID { get; set; } + public int PageIndex; + public int PageSize; + public int TotalCount; + public int TotalPages; + public bool HasPreviousPage; + public bool HasNextPage; + public string RegionName; - public string RegionName { get; set; } + public List<RegionInfoRes> PageData = new List<RegionInfoRes> (); - public string MAC; } } -- Gitblit v1.8.0