次有时间 出一个整体流程的 不提供成品 闲话太多
- getShowInfoDetail 获取商品信息 url='show/getShowInfoDetail'
string jsonData = https://www.52pojie.cn/$"{{"productId":"{Static.productId}","projectId":"{Static.projectId}","requestModel":{{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":{Common.GetTimeStamp()},"utgc":"utoken"}},"theaterId":"{Static.theaterId}"}}";
// timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef
// 1617621297310
jsonData = https://www.52pojie.cn/Common.atgc(jsonData);"show/getShowInfoDetail", Headers, jsonData, out isOK);
dynamic res = js.Deserialize<dynamic>(result); //反序列化
if (res["code"].ToString().Equals("200"))
{
foreach (var item in res["data"]["platShowInfoDetailVOList"])
{
keys.Add(item["showId"].ToString(),new details() {
showId = item["showId"].ToString(),
sectionId = item["sectionId"].ToString(),
showTime = item["showTime"].ToString(),
theaterId = item["theaterId"].ToString() });
}
return keys;
}
-
getSeatInfo 获取座位信息 url='seat/getSeatInfo'
string jsonData = https://www.52pojie.cn/$"{{"requestModel":{{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":{Common.GetTimeStamp()},"utgc":"utoken"}},"sectionId":"{sectionId}","showId":"{showId}"}}"; // timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef // 1617621297310 jsonData = https://www.52pojie.cn/Common.atgc(jsonData);"seat/getSeatInfo", Headers, jsonData, out isOK, null); dynamic res = js.Deserialize<dynamic>(result); //反序列化 if (res["code"].ToString().Equals("200")) { Dictionary<int, pricegrade> priceGradeList = new Dictionary<int, pricegrade>(); foreach (var item in res["data"]["priceGradeList"]) { if (item["ticketPriceId"] != null) { pricegrade pricegrade = new pricegrade(); pricegrade.price = Convert.ToDouble(item["price"]); pricegrade.priceGrade = item["priceGrade"]; pricegrade.priceGradeShow = item["priceGradeShow"]; pricegrade.priceWay = item["priceWay"]; pricegrade.showPrice = item["showPrice"]; pricegrade.ticketPriceColor = item["ticketPriceColor"]; pricegrade.ticketPriceId = item["ticketPriceId"] == null ? 0 : Convert.ToInt32(item["ticketPriceId"]); priceGradeList.Add(pricegrade.ticketPriceId, pricegrade); } } int countSeat = res["data"]["seatList"].Length; foreach (var item in res["data"]["seatList"]) { countSeat--; if (item["seatStatus"].ToString() == "0") { seat seat = new seat(); seat.index = countSeat; seat.bak = item["bak"]; seat.kid = item["kid"]; seat.pid = item["pid"]; seat.seatStatus = item["seatStatus"]; seat.secid = item["secid"]; seat.sf = item["sf"]; seat.sid = item["sid"]; seat.site = item["site"]; seat.statusStr = item["statusStr"]; seat.type = item["type"]; seat.x = item["x"]; seat.y = item["y"]; pricegrade pricegrade = priceGradeList[seat.pid]; seat.price = pricegrade.price; seat.priceGrade = pricegrade.priceGrade; seat.priceGradeShow = pricegrade.priceGradeShow; seat.priceWay = pricegrade.priceWay; seat.showPrice = pricegrade.showPrice; seat.ticketPriceColor = pricegrade.ticketPriceColor; seat.ticketPriceId = pricegrade.ticketPriceId; seat.sectionId = detail.sectionId; seat.showId = detail.showId; seat.showTime = detail.showTime.ToString(); seat.theaterId = detail.theaterId; seats.Add(seat); } } return seats; }
-
购票有三步 1.commitOrderOnSeat 2.createOrder 3.getH5PayForm 执行抓包可知
-
加密
string jsonData = "https://www.52pojie.cn/{/"channelId":null,"consignee":"" + u.sfzs[i].name + "","consigneeId":"","deliveryAreaId":"","deliveryWay":"01","movieIds":"" + u.sfzs[i].id + "","orderFreightAmt":0,"requestModel":{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":" + Common.GetTimeStamp() + ","utgc":"utoken"},"seriesId":null,"shopCode":"1","thirdCouponList":[],"uuid":"" + uuid + ""}"; // timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef // 1617621297310 jsonData = https://www.52pojie.cn/Common.atgc(jsonData);>
- getShowInfoDetail 获取商品信息 url='show/getShowInfoDetail'
string jsonData = https://www.52pojie.cn/$"{{"productId":"{Static.productId}","projectId":"{Static.projectId}","requestModel":{{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":{Common.GetTimeStamp()},"utgc":"utoken"}},"theaterId":"{Static.theaterId}"}}";
// timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef
// tel:1617621297310
jsonData = https://www.52pojie.cn/Common.atgc(jsonData);"show/getShowInfoDetail", Headers, jsonData, out isOK);
dynamic res = js.Deserialize<dynamic>(result); //反序列化
if (res["code"].ToString().Equals("200"))
{
foreach (var item in res["data"]["platShowInfoDetailVOList"])
{
keys.Add(item["showId"].ToString(),new details() {
showId = item["showId"].ToString(),
sectionId = item["sectionId"].ToString(),
showTime = item["showTime"].ToString(),
theaterId = item["theaterId"].ToString() });
}
return keys;
}
-
getSeatInfo 获取座位信息 url='seat/getSeatInfo'
string jsonData = https://www.52pojie.cn/$"{{"requestModel":{{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":{Common.GetTimeStamp()},"utgc":"utoken"}},"sectionId":"{sectionId}","showId":"{showId}"}}"; // timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef // tel:1617621297310 jsonData = https://www.52pojie.cn/Common.atgc(jsonData);"seat/getSeatInfo", Headers, jsonData, out isOK, null); dynamic res = js.Deserialize<dynamic>(result); //反序列化 if (res["code"].ToString().Equals("200")) { Dictionary<int, pricegrade> priceGradeList = new Dictionary<int, pricegrade>(); foreach (var item in res["data"]["priceGradeList"]) { if (item["ticketPriceId"] != null) { pricegrade pricegrade = new pricegrade(); pricegrade.price = Convert.ToDouble(item["price"]); pricegrade.priceGrade = item["priceGrade"]; pricegrade.priceGradeShow = item["priceGradeShow"]; pricegrade.priceWay = item["priceWay"]; pricegrade.showPrice = item["showPrice"]; pricegrade.ticketPriceColor = item["ticketPriceColor"]; pricegrade.ticketPriceId = item["ticketPriceId"] == null ? 0 : Convert.ToInt32(item["ticketPriceId"]); priceGradeList.Add(pricegrade.ticketPriceId, pricegrade); } } int countSeat = res["data"]["seatList"].Length; foreach (var item in res["data"]["seatList"]) { countSeat--; if (item["seatStatus"].ToString() == "0") { seat seat = new seat(); seat.index = countSeat; seat.bak = item["bak"]; seat.kid = item["kid"]; seat.pid = item["pid"]; seat.seatStatus = item["seatStatus"]; seat.secid = item["secid"]; seat.sf = item["sf"]; seat.sid = item["sid"]; seat.site = item["site"]; seat.statusStr = item["statusStr"]; seat.type = item["type"]; seat.x = item["x"]; seat.y = item["y"]; pricegrade pricegrade = priceGradeList[seat.pid]; seat.price = pricegrade.price; seat.priceGrade = pricegrade.priceGrade; seat.priceGradeShow = pricegrade.priceGradeShow; seat.priceWay = pricegrade.priceWay; seat.showPrice = pricegrade.showPrice; seat.ticketPriceColor = pricegrade.ticketPriceColor; seat.ticketPriceId = pricegrade.ticketPriceId; seat.sectionId = detail.sectionId; seat.showId = detail.showId; seat.showTime = detail.showTime.ToString(); seat.theaterId = detail.theaterId; seats.Add(seat); } } return seats; }
-
购票有三步 1.commitOrderOnSeat 2.createOrder 3.getH5PayForm 执行抓包可知
-
加密
string jsonData = "https://www.52pojie.cn/{/"channelId":null,"consignee":"" + u.sfzs[i].name + "","consigneeId":"","deliveryAreaId":"","deliveryWay":"01","movieIds":"" + u.sfzs[i].id + "","orderFreightAmt":0,"requestModel":{"applicationCode":"plat_wx","applicationSource":"plat_wx","atgc":"atoken","current":1,"size":10,"timestamp":" + Common.GetTimeStamp() + ","utgc":"utoken"},"seriesId":null,"shopCode":"1","thirdCouponList":[],"uuid":"" + uuid + ""}"; // timestamp:1617615011523,atgc:d199dfe8cf7afc5657f9267c3863adef // tel:1617621297310 jsonData = https://www.52pojie.cn/Common.atgc(jsonData);>