欢迎光临
我们一直在努力

如梦 保利 购买流程和加密

次有时间 出一个整体流程的 不提供成品 闲话太多

  1. 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;
                }
  1. 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;
                   }
  2. 购票有三步 1.commitOrderOnSeat 2.createOrder 3.getH5PayForm 执行抓包可知

  3. 加密

    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);>
  1. 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;
                }
  1. 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;
                   }
  2. 购票有三步 1.commitOrderOnSeat 2.createOrder 3.getH5PayForm 执行抓包可知

  3. 加密

    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);>
赞(0) 打赏
未经允许不得转载:哈哈网 » 如梦 保利 购买流程和加密

相关推荐

  • 暂无文章

评论 抢沙发

© 2010-2023   哈哈网   网站地图

冀ICP备2023023099号

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏