|
发表于 2015-3-15 20:26:44
|
显示全部楼层
楼主 我解决加入购物车了,但是默认加入购物车商品的 配送地址是 北京市朝阳区三环以内,现在要解决的问题是加入购物车之后,配送地址默认为自己账号的默认地址怎么解决?
加车:
HttpItemObj.URL = string.Format("http://gate.jd.com/InitCart.aspx?pid={0}&pcount=1&ptype=1", txtProductId.Text.Trim());
HttpItemObj.Method = "GET";
HttpItemObj.Accept = "*/*";
HttpItemObj.Header.Add("Accept-Encoding", "gzip, deflate");
HttpItemObj.Referer = string.Format("http://item.jd.com/{0}.html", txtProductId.Text.Trim());
HttpItemObj.UserAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)";
HttpItemObj.Cookie = cookies;
//";ipLoc-djd=12-911-23690-0; ipLocation=江苏; areaId=12; user-key='"+ uuid +"'; cn=0";
HttpResultObj = HttpHelperObj.GetHtml(HttpItemObj);
this.txtLoginResult.Text = HttpResultObj.Html; //返回加入购物车成功 |
|