public bool DestineVenue(string uuid, Venue venue) { Monitor.Enter(groupList); try { string groupid = GetUserGroupID(uuid); SportMatchGroup group = groupList.Find(a => { return a.groupID == groupid; }); if (group == null) return false; return group.SetVenue(venue); } finally { Monitor.Exit(groupList); } }
public void destineVenue(string vid, string name, string time, string address, string latitude, string longitude) { string uuid = Context.Session["uuid"].ToString(); LOG.Out("-----------------------------------> DestineVenue : " + uuid + " ==> 场馆: " + vid + " <----------------------------------------: "); Venue venue = new Venue(vid, name, time, address, latitude, longitude); if (SportMatchManager.instance.DestineVenue(uuid, venue)) { string groupid = SportMatchManager.instance.GetUserGroupID(uuid); SportMatchManager.instance.SendGroupDestineVenue(groupid, uuid); Send(JsonGen.Status(100)); } else Send(JsonGen.Status(120)); }