コード例 #1
0
 public override void GetSite(ConfigurationStatus.LotteryType pType, string playName = "")
 {
     try
     {
         if (base.Prize == "")
         {
             string lotteryLine   = this.GetLotteryLine(pType, false);
             string indexLine     = this.GetIndexLine();
             string pResponsetext = "";
             HttpHelper.GetResponse5(ref pResponsetext, lotteryLine, "GET", string.Empty, indexLine, 0x2710, "UTF-8", true);
             if (pResponsetext != "")
             {
                 base.Prize = CommFunc.GetIndexString(pResponsetext, "\"user_prize_group\":\"", "\"", 0);
                 if (base.Prize == "")
                 {
                     base.Prize = CommFunc.GetIndexString(pResponsetext, "\"user_prize_group\":", ",", 0);
                 }
                 string str4 = CommFunc.GetIndexString(pResponsetext, "\"_token\":\"", "\"", 0);
                 if (str4 != "")
                 {
                     base.Token = str4;
                 }
             }
         }
     }
     catch
     {
     }
 }