zoukankan      html  css  js  c++  java
  • 单品优惠券炸了

    刚刚准备要写一个如何获取单品优惠券的文章, 刚刚好就出问题.

    看来联盟已经出手了.

    之前的各种查券api:

    淘鹊桥:http://vip.taoqueqiao.com/?mod=inc&act=plugin

    轻淘客:http://www.qingtaoke.com/api/UserPlan/

    淘客助手:http://zhushou3.taokezhushou.com/api/v1/coupons_base/

    有的activityid还能查, 有的没数据了.

    但是查到activityid以后呢, 获取不了优惠券的额度了. 

    直接跳转到如下类似页面:

    https://market.m.taobao.com/apps/aliyx/coupon/detail.html?wh_weex=true&activity_id=0a7ff37a157c4debb4ec47357053bf45&seller_id=1652518524

    关键是这个页面还需要登录淘宝账户才能看.

    好吧, 你牛逼,  抓包看看:

    比如我们找这个: https://detail.tmall.com/item.htm?id=537669879642&ali_trackid=2:mm_122507522_22754993_75298166:1493101339_2k6_875220387&spm=a311n.8189758%2Fa.90200000.1.1QjfiC&pvid=qhkj_dtkp

    淘鹊桥的接口还能返回一个优惠券的地址: 

    http://shop.m.taobao.com/shop/coupon.htm?seller_id=2927100714&activity_id=6453d7d9eff84c08a6eacf80f7963fe3

    访问之后发生了跳转: https://market.m.taobao.com/apps/aliyx/coupon/detail.html?wh_weex=true&activity_id=6453d7d9eff84c08a6eacf80f7963fe3&seller_id=2927100714

    然后这个页面的js

      <script>
        define('@page/data', function(require, exports, module) {
          var metaData = {
            charset:'utf-8',
            title:'卡券领取页',
            spma:'a3113',
            spmb:'8592669',
            env: 'production'
          };
    
          var moduleData = {};
    
          module.exports = {
            metaData: metaData,
            moduleData: moduleData
          };
        });
      </script>

    还会进入下一个页面, 判断H5账户登录令牌

    https://api.m.taobao.com/h5/mtop.user.getusersimple/1.0/?appKey=12574478&t=1493105418505&sign=4f6e938650c68854b27b2dc5e3d7e398&api=mtop.user.getUserSimple&v=1.0&H5Request=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data={"isSec":0}

    接着主API出场:

    https://api.m.taobao.com/h5/mtop.taobao.couponmtopreadservice.findshopbonusactivitys/2.0/?appKey=12574478&t=1493101788745&sign=6f5637b9f3f00e5f17cfdf7dc1142891&api=mtop.taobao.couponMtopReadService.findShopBonusActivitys&v=2.0&AntiFlood=true&ecode=1&type=jsonp&dataType=jsonp&callback=mtopjsonp2&data={"uuid":"6453d7d9eff84c08a6eacf80f7963fe3","sellerId":"2927100714","queryShop":true}

    mtopjsonp3({"api":"mtop.taobao.couponMtopReadService.findShopBonusActivitys","v":"2.0","ret":["SUCCESS::调用成功"],
    "data":{"haveNextPage":"false","needInterrupt":"false","module":[{"couponId":"3199070405","sellerId":"2927100714",
    "activityId":"952395031","uuid":"6453d7d9eff84c08a6eacf80f7963fe3","activityName":"挖球器","startFee":"2400","discount":"1500",
    "startTime":"2017-04-25 00:00:00","endTime":"2017-04-28 23:59:59","transfer":"false","totalCount":"10000","appliedCount":"316",
    "personLimitCount":"1","shopNick":"lhopan欧烹嘉路专卖店","couponType":"1","status":"1","intervalDays":"0","intervalHours":"0",
    "useIntervalMode":"false","defaultValidityCopywriter":"2017.04.28前有效","currencyUnit":"¥"}],"error":"false","totalCount":"0"}})

    看到没  这个才是最后的王牌.  但是你妹  怎么没有金额啊.

    继续观察,  此路不通, 肯定有其他办法.

    下面这个就是

    https://uland.taobao.com/cp/coupon?ctoken=&activityId=6453d7d9eff84c08a6eacf80f7963fe3&pid=你的pid&itemId=537669879642

    返回:

    {"success":true,"message":"","result":{"retStatus":0,"startFee":24.0,"amount":15.0,
    "shopLogo":"//img.alicdn.com/bao/uploaded//13/9c/TB1dfknKVXXXXalXVXXSutbFXXX.jpg",
    "shopName":"lhopan欧烹嘉路专卖店","couponFlowLimit":false,"effectiveStartTime":"2017-04-25 00:00:00",
    "effectiveEndTime":"2017-04-28 23:59:59","couponKey":"p8TjmSoxf3niRzMiytwfIc37WbQbD49%2FG2XGmmuYhszkmnTDkZM0zwQWVxa0er5%2BIwwgcQkzMAA%3D",
    "pid":null,"item":{"clickUrl":"//s.click.taobao.com/t?e=m%3D2%26s%3DNTCchWASTXxw4vFB6t2Z2ueEDrYVVa64K7Vc7
    tFgwiHjf2vlNIV67vUj%2BsnOyCQ%2FNIp4fcwrAVlQRvrLfl9ssIjxmLBineQgK4Ds3bJ65Ml3AUtGb96TYBjSE%2BCP6c%2B0iWg04s7
    kuUBc7gK%2BGrPaFuVna5PZHqa3UO5fx02vaF2Nbt4WVvegOjb7gI0gg0tk3Mw4m5x3SsiqglDgwvfm3cYOae24fhW0","picUrl":"//
    gaitaobao4.alicdn.com/tfscom/i2/TB1pPQsMVXXXXbgapXXXXXXXXXX_!!0-item_pic.jpg","title":"欧烹可弹式水果挖球器
    不锈钢雪糕勺西瓜挖勺子 冰淇淋球冰激凌勺","reservePrice":59.9,"discountPrice":29.9,"biz30Day":332,"tmall":"1",
    "postFree":"1","itemId":537669879642,"commission":null,"shareUrl":"//uland.taobao.com/coupon/edetail?
    e=C8l058ZTV2oGQASttHIRqSBd0NXb0QU0wa2mL29HMYGAnVXUwZx8Io1y1Nik4Jvmm541RZBEEpc7GfYIFjjYie65Wv%2B3SdUbD
    fqEFBOhTcwLdUedZ7swJiBCZdB3FugJrbZrFqD%2B0cnsKWRtCDVzIiUzVkkdwsIm"}}}

    拿走不谢

    下节预告  解码淘口令

    公众号已经修正, 欢迎查询对比

  • 相关阅读:
    .Net Cache及(HttpRuntime.Cache与HttpContext.Current.Cache的区别)
    Autofac 属性注入的方式
    AutoFac创建实例的方法解析
    MongoDB 增删改查 CRUD 操作
    MongoDB 3.4版本在windows环境下的安装与配置
    Stack Overflow 2017 开发者调查报告
    使用SVN对GitHub进行版本管理
    MongoDB.Driver for C#
    Dapper.Net 轻量级的ORM 框架2
    Selenium webdriver 安装(一)
  • 原文地址:https://www.cnblogs.com/doorsky/p/6762422.html
Copyright © 2011-2022 走看看