|
楼主 |
发表于 2014-8-7 16:55:44
|
显示全部楼层
#region 帐号登录
//已有变化,现未改写
private void but_Login_Click(object sender, EventArgs e)
{
//item = new HttpItem()
//{
// URL = "https://passport.jd.com/uc/loginService?uuid=" + Params[0] + "&ReturnUrl=http%3A%2F%2Fwww.jd.com%2F&r=0.7045595035144819",
// Method = "POST",
// Referer = "https://passport.jd.com/new/login.aspx?ReturnUrl=http%3A%2F%2Fwww.jd.com%2F",
// Postdata = string.Format("uuid={0}&loginname={1}&nloginpwd={2}&loginpwd={3}&machineNet=&machineCpu=&machineDisk=&authcode={4}&{5}", Params[0], txtName.Text.Trim(), txtPass.Text.Trim(), txtPass.Text.Trim(), txtVerCode.Text.Trim(), Params[2]),
// Cookie = Cookies
//};
//result = http.GetHtml(item);
//if (result.Html.Contains(@"({""success"":"""))
// MessageBox.Show("登录成功!", "提示!", MessageBoxButtons.OK, MessageBoxIcon.Information);
//else
// MessageBox.Show("登录失败!", "提示!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
#endregion |
|