예제 #1
0
        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);
                }
            }
        }
예제 #2
0
 public Client SelectClient(string phone)//根据手机号查询该用户的所有信息
 {
     return(dal.SelectClientInfo(phone));
 }