public LoginState CheckLogin(string phone, string pwd)//登录判断 { ClientDal dal = new ClientDal(); Client client = dal.SelectClientInfo(phone); if (client == null) { return(LoginState.NoName); } else { if (client.Pwd != pwd) { return(LoginState.PwdErr); } else { return(LoginState.OK); } } }
public Client SelectClient(string phone)//根据手机号查询该用户的所有信息 { return(dal.SelectClientInfo(phone)); }