public static void MsgRegistry(ClientState c, MsgBase msg) { Debug.WriteLine("MsgRegistry"); MsgRegistry msgResgistory = (MsgRegistry)msg; User user = UserWrapper.FromMsg(msgResgistory); bool checkOut = UserManager.Check(user, out msgResgistory.result); if (!checkOut) { msgResgistory.code = HttpStatusCode.InternalServerError; NetManager.Send(c, msgResgistory); } else { user.Score = 0; user.Userid = UUIDUtils.GetUUID(); UserManager.Add(user); msgResgistory.code = HttpStatusCode.OK; msgResgistory.result = "注册成功"; NetManager.Send(c, msgResgistory); } }
protected string NextSeries() => UUIDUtils.randomUUID();