日期:2014-05-17 浏览次数:20471 次
if (Regex.IsMatch(id, @"^\d{1,8}$", RegexOptions.IgnoreCase)) { _id = int.Parse(id); userPo = userBlo.Login(_id, pwd, out status); } else if (Regex.IsMatch(id, @"^((13)|(14)|(15)|(18))\d{9}$", RegexOptions.IgnoreCase)) { userPo = userBlo.LoginByPhone(id , pwd, out status); } else if (Regex.IsMatch(id, @"^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$", RegexOptions.IgnoreCase)) { userPo = userBlo.LoginByEmail( id , pwd, out status); }