/// <summary> /// 谁破了世界记录的列表 /// </summary> /// <returns></returns> public static string[] GetRecordList() { List<string> StrList = new List<string>(); bizRecordRank biz = new bizRecordRank(); List<RecordRankRelationQuery> list = biz.GetRecordList(); if (list != null) { foreach (RecordRankRelationQuery model in list) { if (model.IsRecord == (int)RecordEnum.Flat) { string s = string.Format("恭喜{0}在{1}平了世界记录,预计奖励{2}吧币", model.UserName, model.GameName, bizGameWorldRecord.Instance().GetModel(model.fid).PoAwards); StrList.Add(s); } else if (model.IsRecord == (int)RecordEnum.Smash) { string s = string.Format("恭喜{0}在{1}破了世界记录,预计奖励{2}吧币", model.UserName, model.GameName, bizGameWorldRecord.Instance().GetModel(model.fid).PoAwards); StrList.Add(s); } } } DataSet ds = bizGameWorldRecord.Instance().GetWorldRecordList(); if (MainFunc.IsDataSetNoNull(ds)) { for (int i = 0; i < ds.Tables[0].Rows.Count;i++ ) { string s = string.Format("{0}的世界记录保持者:{1}", ds.Tables[0].Rows[i]["GameName"], ds.Tables[0].Rows[i]["UserName"]); StrList.Add(s); } } return StrList.ToArray(); }