缙哥哥的博客
与你分享我的点点滴滴生活

京东双11全民养红包(类似天猫喵铺)活动自动完成任务脚本

280G全国流量的电信星海卡仅需29元/月,长期可续该套餐,随时可注销

京东这种双11任务真他妈无聊,浪费时间,奈何缙哥哥又是个穷人,忍不住去媷这些羊毛。亲自操作天猫双11合伙人全民开喵铺玩法,简直就跟傻B一样,不断的点进去看各种产品……这种蝇头小利让这些商城平台引流到产品页面。所以,今天在Mark’s大佬的指导下,分享个京东双11全民养红包活动自动完成任务脚本。

为什么要用这个脚本呢?因为它可以为你每天省下10-30分钟时间,你完全可以用这个时间来学习或者写日记。

三步完成活动任务,只需一分钟

首先使用谷歌浏览器 Google Chrome (什么?你没有?没有不会下吗?)登陆京东官网 www.jd.com

登陆完成后访问活动地址页面

https://happy.m.jd.com/babelDiy/GZWVJFLMXBQVEBDQZWMY/XJf8bH6oXDWSgS91daDJzXh9bU7/index.html

点击键盘F12弹出检查窗口,选择控制台,也就是Console窗口,在空白处输入以下代码并执行即可。

let productList = [],
    shopList = [],
    url = "https://api.m.jd.com/client.action";

function autoPost(id, type) {
    fetch(`${url}?timestamp=${new Date().getTime()}`, {
        method: "POST",
        mode: "cors",
        credentials: "include",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        body: `functionId=raisepacket_collectScore&body={"type":${type},"ext":"${id}","appsign":1,"msgsign":2}&client=wh5`
    }).then(function (response) {
        return response.json()
    }).then(function (res) {
        console.log(res.data.biz_msg)
    })
}

function start() {
    fetch(`${url}?${new Date().getTime()}`, {
        method: "POST",
        mode: "cors",
        credentials: "include",
        headers: {
            "Content-Type": "application/x-www-form-urlencoded"
        },
        body: 'functionId=raisepacket_getShopAndProductList&body=&client=wh5'
    }).then(function (response) {
        return response.json()
    }).then(function (res) {
        productList = res.data.result.productList;
        shopList = res.data.result.shopList;
        console.log(`获取到任务,商品:${productList.length}商品:${shopList.length}`);
        autoProductTask()
    })
}

function autoProductTask() {
    for (let i = 0, leng = productList.length; i < leng; i++) { (function (index) { setTimeout(() => {
                let item = productList[index];
                autoPost(item['id'], 4);
                console.log(`商品总任务数:${leng}当前任务数:${index+1}`);
                if (leng - 1 == index) {
                    autoShopTask()
                }
            }, index * 1500)
        })(i)
    }
}

function autoShopTask() {
    for (let i = 0, leng = shopList.length; i < leng; i++) { (function (index) { setTimeout(() => {
                let item = shopList[index];
                autoPost(item['id'], 2);
                console.log(`商铺总任务数:${leng}当前任务数:${index+1}`);
                if (leng - 1 == index) {
                    autoPlay()
                }
            }, index * 1500)
        })(i)
    }
}

function autoPlay() {
    for (let i = 0, leng = 4; i < leng; i++) { (function (index) { setTimeout(() => {
                autoPost(0, 5);
                console.log(`好玩互动:${leng}当前任务数:${index+1}`);
                if (leng - 1 == index) {
                    autoInteract()
                }
            }, index * 1000)
        })(i)
    }
}

function autoInteract() {
    for (let i = 0, leng = 4; i < leng; i++) { (function (index) { setTimeout(() => {
                autoPost(0, 10);
                console.log(`视频直播:${leng}当前任务数:${index+1}`);
                if (leng - 1 == index) {
                    autoShopping()
                }
            }, index * 1000)
        })(i)
    }
}

function autoShopping() {
    for (let i = 0, leng = 3; i < leng; i++) { (function (index) { setTimeout(() => {
                autoPost(0, 3);
                console.log(`精彩会场:${leng}当前任务数:${index+1}`)
            }, index * 1000)
        })(i)
    }
}
start();

执行后马上弹出正在操作的任务,是不是很快,比你手动效率怕是要高出100倍以上吧……

等它执行完成了,你就可以打开手机京东看看是否已经完成,顺便投喂包包。对了,别忘了京东双11红包雨每天还可以领双11红包哦!

京东:双11天天红包雨,抢1111元红包、百万京豆,每天1次机会

机智如我,好了,你学会了吗?

天猫双11全民开喵铺部分活动:自动完成30家店铺任务脚本

赞(9) 打赏
转载请注明来源及链接:缙哥哥 » 京东双11全民养红包(类似天猫喵铺)活动自动完成任务脚本
如需 WordPress 优化加速、二次开发、托管等服务,可联系我购买付费服务:点此联系我 | 近期站内热门福利:

评论 9

评论前必须登录!

 

  1. #5

    脚本执行显示点太快了,要修改哪里才能延时久点

    asdadsadf3s5年前 (2019-10-28)
  2. #4

    失效了哥哥,提示VM45:1 Uncaught SyntaxError: Identifier ‘productList’ has already been declared
    at :1:1

    wzy5年前 (2019-10-27)
    • 我今天才执行过,怎么会失效?

      缙哥哥5年前 (2019-10-27)
      • 哥哥好,京东运行脚本,全部显示 点太快啦!等下再来吧 怎么回事呢

        maolin5年前 (2019-10-28)
  3. #3

    哥我来催你搬迁了……淘宝的脚本来了

    mark5年前 (2019-10-24)
  4. #2

    可以再写一个天猫喵铺的自动完成脚本吗

    guuuu5年前 (2019-10-24)
  5. #1

    脚本操作最为致命。

    奶爸de笔记5年前 (2019-10-23)

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

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

支付宝扫一扫

微信扫一扫

登录

找回密码

注册