Exemplo n.º 1
0
        /// <summary>
        /// 根据用户名密码获取用户信息
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password">明文</param>
        /// <param name="regionCode"></param>
        /// <returns></returns>
        public CustomerEntity GetUserByPassword(string username, string password, string regionCode)
        {
            password = MD5Hash.Md5Encrypt(password);//加密
            var model = Dal.GetCustomerEntity(username, password, regionCode);

            return(model);
        }