/// <summary> /// 创建账号 /// </summary> /// <param name="token"></param> /// <param name="account"></param> /// <param name="password"></param> /// <returns></returns> public int Creat(NetFrame.UserToken token, string account, string password) { if (account.Length < 3 || password.Length < 3) { return(-1); //账号或密码长度不够返回-1 } if (accountCache.HasAccaount(account)) { return(-2); //已有此账号 } accountCache.AddAccaount(account, password); return(1); //创建成功 }