/// <summary> /// 登录 /// </summary> /// <param name="userName"></param> /// <param name="userPwd"></param> /// <param name="userIp"></param> /// <param name="model"></param> /// <returns></returns> public bool Login(string userName, string userPwd, string userIp, out CYJH_OrderSystem.Admin.Base.Model.MR_Admin model) { model = new CYJH_OrderSystem.Admin.Base.Dal.DR_Admin().GetModel(userName, userPwd.MD5(), userIp); if (model == null || model.AID <= 0) return false; return true; }
/// <summary> /// 登录 /// </summary> /// <param name="userName"></param> /// <param name="userPwd"></param> /// <param name="userIp"></param> /// <param name="model"></param> /// <returns></returns> public bool Login(string userName, string userPwd, string userIp, out CYJH_OrderSystem.Admin.Base.Model.MR_Admin model) { model = new CYJH_OrderSystem.Admin.Base.Dal.DR_Admin().GetModel(userName, userPwd.MD5(), userIp); if (model == null || model.AID <= 0) { return(false); } return(true); }