用户头像
 找回密码
 立即注册

QQ登录

只需一步,快速开始

鎵嬫満鐧诲綍

手机号码,快捷登录

QQ神教程网 网站首页 技术大全 查看内容

利用代码秒完成京东养红包

2019-10-23 11:36| 发布者: 大明

摘要: 操作步骤: 1、打开:http://www.jd.com 登录京东账号 2、打开:https://url.cn/56ivMFO 进入活动页面 3、按F12 点击Console 输入代码 之后按一下回车键 就会自动完成了 代码如下:let prod ...





操作步骤:


1、打开:http://www.jd.com 登录京东账号


2、打开:https://url.cn/56ivMFO 进入活动页面


3、按F12 点击Console 输入代码 之后按一下回车键 就会自动完成了



代码如下:
  1. 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();
复制代码


attitude
鲜花
attitude
握手
attitude
雷人
attitude
路过
attitude
鸡蛋
关于我们|联系我们|个人博客|发展历程|手机浏览|返回首页
方格电子商务版权所有
本站资源均收集自互联网,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站并出示版权证明以便删除!
侵权投诉邮箱:1013674450@qq.com
返回顶部