测试
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"); } }
专注互联网开发的:斯通麦博
浙公网安备 33010602011771号