Example #1
0
        public string Lottery(string uname, string pwd)
        {
            string cookie = Login(uname, pwd);

            if (cookie == null)
            {
                return(null);
            }
            // return HttpUtility.GetString(lotteryApi,GetHeaders(cookie), false,new WebProxy("localhost",8888));
            return(HttpUtility.GetString(lotteryApi, Helper_ZJB.GetHeaders(cookie)));
        }
Example #2
0
        public override ImportedUser Run(string uname, string pwd)
        {
            string cookie = Login(uname, pwd);

            if (cookie == null)
            {
                return(null);
            }
            string html = HttpUtility.GetString(userInfoApi, Helper_ZJB.GetHeaders(cookie));
            string info = Regex.Match(html, "name='info' value='(.*?)'").Groups[1].Value;
            string json = CryptoUtility.TripleDESDecrypt(info);

            return(JsonConvert.DeserializeObject <ImportedUser>(json));
        }