测试

Code

/// <summary>
        /// 校验用户名
        /// </summary>
        private void CheckLoginName()
        {
            string login = RSRequest.GetFormString("user_login");
            if (Validate.Email(login))
            {
                ResponseStr(_memberBLL.ExistEmail(login) ? "has" : "none");
            }
            else if (Validate.Mobile(login))
            {
                ResponseStr(_memberBLL.ExistMobile(login) ? "has" : "none");
            }
            else if (Validate.UsersName(login))
            {
                ResponseStr(_memberBLL.ExistLogin(login) ? "has" : "none");
            }
        }
专注互联网开发的:斯通麦博
原文地址:https://www.cnblogs.com/icestone10/p/3140063.html