gxc
2019-12-09 9f1d51429ec86d618bcdb75aee505a57ae94db30
ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs
@@ -64,9 +64,9 @@
        /// <param name="phone">手机号</param>
        /// <param name="zoneCode">区号</param>
        /// <returns></returns>
        public bool CheckPhoneWithZone(string phone,string zoneCode)
        public bool CheckPhoneWithZone(string phone, string zoneCode)
        {
            if(zoneCode=="86")
            if (zoneCode == "86")
            {
                var regex = new Regex(CommonPage.PhoneRegexStr);
                return regex.IsMatch(phone);
@@ -79,5 +79,23 @@
        }
        #endregion
        #region ◆ 密码____________________________
        /// <summary>
        /// 检查密码长度合法性
        /// </summary>
        /// <param name="password"></param>
        /// <returns></returns>
        public bool CheckPwdLength(string password)
        {
            if (password.Trim().Length >= 6 && password.Trim().Length <= 13)
            {
                return true;
            }
            return false;
        }
        #endregion
    }
}