public static string GetRequestInfos()
        {
            List <STSelectOption> list = new List <STSelectOption>();

            foreach (int e in Enum.GetValues(typeof(ERequestType)))
            {
                string         text = GetRequestName(e);
                STSelectOption info = new STSelectOption();
                info.text  = text;
                info.value = e.ToString();
                list.Add(info);
            }
            string res = JsonConvert.SerializeObject(list);

            return(res);
        }
        public static string GetQuestTypes()
        {
            List <STSelectOption> list = new List <STSelectOption>();

            foreach (int e in Enum.GetValues(typeof(mw.Enums.TaskType)))
            {
                if (e == (int)mw.Enums.TaskType.TASK_TYPE_DAILY ||
                    e == (int)mw.Enums.TaskType.TASK_TYPE_SIGN
                    )
                {
                    string         text = GetQuestTypeName(e);
                    STSelectOption info = new STSelectOption();
                    info.text  = text;
                    info.value = e.ToString();
                    list.Add(info);
                }
            }
            string res = JsonConvert.SerializeObject(list);

            return(res);
        }
        public static string GetRewardTypes()
        {
            List <STSelectOption> list = new List <STSelectOption>();

            foreach (int e in Enum.GetValues(typeof(mw.Enums.RewardType)))
            {
                if (e == (int)mw.Enums.RewardType.RWD_TYPE_BUFF ||
                    e == (int)mw.Enums.RewardType.RWD_TYPE_EQUIP)
                {
                    continue;
                }

                string         text = GetRewardTypeName(e);
                STSelectOption info = new STSelectOption();
                info.text  = text;
                info.value = e.ToString();
                list.Add(info);
            }
            string res = JsonConvert.SerializeObject(list);

            return(res);
        }
        public static string GetItemName(int rwdType)
        {
            List <STSelectOption> list = new List <STSelectOption>();

            switch (rwdType)
            {
            // 0 经济类型
            case 0:
                foreach (var pair in playerHistroy.economicName)
                {
                    STSelectOption stOption = new STSelectOption();
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string text = string.Format("{0}({1})", TableManager.GetGMTText(21000 + (pair.Key)), pair.Key);
                    stOption.value = pair.Key.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;

            // 1 物品
            case 1:
                foreach (var pair in TableManager.ItemTable)
                {
                    STSelectOption stOption = new STSelectOption();
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string text = string.Format("{0}({1})", TextManager.GetText(pair.Value.name), pair.Value.id);
                    stOption.value = pair.Value.id.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;

            // 2 武魂
            case 2:
            case 3:
                foreach (var pair in TableManager.HeroTable)
                {
                    STSelectOption stOption = new STSelectOption();
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string text = string.Format("{0}({1})", TextManager.GetText(pair.Value.name), pair.Value.id);
                    stOption.value = pair.Value.id.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;

            // 3 饰品
            case 4:
                foreach (var pair in TableManager.StoneTable)
                {
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string[]       color    = { "0", "1", "blue", "purple", "orange", "red" };
                    STSelectOption stOption = new STSelectOption();
                    string         text     = TextManager.GetText(pair.Value.name) + "[" + color[pair.Value.color] + "]" + "(" + pair.Value.id + ")";
                    stOption.value = pair.Value.id.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;

            case 5:
            {
                foreach (var pair in TableManager.PetTable)
                {
                    STSelectOption stOption = new STSelectOption();
                    string         text     = TextManager.GetText(pair.Value.name) + "[" + pair.Value.petstar + " STAR]" + "(" + pair.Value.idx + ")";
                    stOption.value = pair.Value.idx.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
            }
            break;

            // 8 晶石
            case 8:
                foreach (var pair in TableManager.PetStoneTable)
                {
                    STSelectOption stOption = new STSelectOption();
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string text = TextManager.GetText(pair.Value.name) + "(" + pair.Value.id + ")";
                    stOption.value = pair.Value.id.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;

            // 9 10 坐骑碎片
            case 9:
            case 10:
                Regex r = new Regex("\\[.*?\\]");
                foreach (var pair in TableManager.MountTable)
                {
                    STSelectOption stOption = new STSelectOption();
                    if (pair.Key == 0)
                    {
                        continue;
                    }
                    string text = TextManager.GetText(pair.Value.name) + "(" + pair.Value.id + ")";
                    text           = r.Replace(text, "");
                    stOption.value = pair.Value.id.ToString();
                    stOption.text  = text;
                    list.Add(stOption);
                }
                break;
            }

            string res = JsonConvert.SerializeObject(list);

            return(res);
        }