Exemplo n.º 1
0
        public override void CountPrizeDic(string pResponseText)
        {
            base.PrizeDic.Clear();
            base.PlayMethodDic.Clear();
            string        pStr = CommFunc.GetIndexString(pResponseText, "data_label:", "cur_issue", 0);
            string        str2 = CommFunc.GetIndexString(pStr, "title:\"", "\"", 0);
            List <string> list = CommFunc.SplitString(pStr, "show_str :", -1);

            for (int i = 1; i < list.Count; i++)
            {
                string str3 = list[i];
                string str4 = CommFunc.GetIndexString(str3, "methodid : ", ",", 0);
                string str5 = CommFunc.GetIndexString(str3, "{levs:'", "'", 0);
                string str6 = str2 + CommFunc.GetIndexString(str3, "name:'", "'", 0);
                base.PlayMethodDic[str6] = str4;
                string str7 = CommFunc.GetIndexString(str3, "title:\"", "\"", 0);
                if (str7 != "")
                {
                    str2 = str7;
                }
                if (!CommFunc.CheckIsNumber(str5))
                {
                    str5 = CommFunc.GetIndexString(str3, "\"key\":0,\"value\":\"", "\"", 0);
                    if (str5 == "")
                    {
                        str5 = CommFunc.GetIndexString(str3, "prize:{1:'", "'", 0);
                    }
                    if (!CommFunc.CheckIsNumber(str5))
                    {
                        continue;
                    }
                }
                base.PrizeDic[str4] = str5;
            }
        }
Exemplo n.º 2
0
 private bool CheckVerifyCode(string pVerifyCode)
 {
     if (pVerifyCode.Length != 4)
     {
         return(false);
     }
     if (!CommFunc.CheckIsNumber(pVerifyCode))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 3
0
        public override void CountPrizeDic(string pResponseText)
        {
            base.PrizeDic.Clear();
            base.PlayMethodDic.Clear();
            string        str  = "";
            string        str2 = "";
            List <string> list = CommFunc.SplitString(CommFunc.GetIndexString(pResponseText, "data_label: [", "cur_issue", 0), "methodid", -1);

            for (int i = 0; i < list.Count; i++)
            {
                string pStr = list[i];
                string str5 = CommFunc.GetIndexString(pStr, " : ", ",", 0);
                string str6 = CommFunc.GetIndexString(pStr, "{levs:'", "'", 0);
                if ((str5 != "") && (str6 != ""))
                {
                    string str7 = $"{str}-{str2}-{CommFunc.GetIndexString(pStr, "name:'", "'", 0)}";
                    base.PlayMethodDic[str7] = str5;
                    if (!CommFunc.CheckIsNumber(str6))
                    {
                        str6 = CommFunc.GetIndexString(pStr, "prize:{1:'", "'", 0);
                        if (!CommFunc.CheckIsNumber(str6))
                        {
                            goto Label_0119;
                        }
                    }
                    base.PrizeDic[str5] = str6;
                }
Label_0119:
                if (pStr.Contains("title:\""))
                {
                    str = CommFunc.GetIndexString(pStr, "title:\"", "\"", 0);
                }
                if (pStr.Contains("gtitle:'"))
                {
                    str2 = CommFunc.GetIndexString(pStr, "gtitle:'", "'", 0);
                }
            }
        }