/// <summary> /// 新增用户 /// </summary> /// <param name="user"></param> /// <returns></returns> public int AddAccount(UserInfo user) { int re = -1; user.Password = MD5Encrypt64(user.Password); if (GetUserByName(user.UserName).UserName != null) { re = 3; return(re); } if (ua.AddAccount(user)) { re = 4; } else { re = -4; } return(re); }