public void add(string account, string password) { //创建账号实体并进行绑定 ACCOUNT model = new ACCOUNT(); model.account = account; model.password = Convert.ToBase64String(Encoding.UTF8.GetBytes(password)); model.Add(); accMap.Add(account, model); }
public void Add(string account, string password) { ACCOUNT model = new ACCOUNT(); model.account = account; model.password = Convert.ToBase64String(Encoding.UTF8.GetBytes(password)); model.Add(); GameFW.Utility.Tools.debuger.Log("创建了新账号."); accountMap.Add(account, model); }
/// <summary> /// 添加账户 /// </summary> /// <param name="token"></param> /// <param name="dto"></param> public void Add(UserToken token, AccountDto dto) { ACCOUNT a = new ACCOUNT(); a.account = dto.Account; a.password = dto.Password; //写入数据库 a.id = a.GetMaxId(); a.Add(); dicAccounts.Add(dto.Account, a);//将用户信息添加到用户信息字典中 }