From b5456d1593a93fd3c1c865fd832073310bbc9eeb Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Thu, 7 Jan 2021 18:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9C=E4=B8=9C=E8=B6=85=E5=B8=82=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20=E5=BC=80=E5=BA=97=E9=93=BA=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E5=8D=A1=E5=BE=97=E8=93=9D=E5=B8=81=E4=BB=BB=E5=8A=A1(?= =?UTF-8?q?=E5=81=87=E5=85=A5=E4=BC=9A)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_car_exchange.js | 2 +- jd_superMarket.js | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/jd_car_exchange.js b/jd_car_exchange.js index 69f923b..a91eeb1 100644 --- a/jd_car_exchange.js +++ b/jd_car_exchange.js @@ -55,8 +55,8 @@ const JD_API_HOST = 'https://car-member.jd.com/api/'; if (cookiesArr[i]) { cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) - console.log(`京东账号${i}`) $.index = i + 1; + console.log(`京东账号${$.index} ${$.UserName}`) $.isLogin = true; $.nickName = ''; message = ''; diff --git a/jd_superMarket.js b/jd_superMarket.js index ca6afb5..75438e0 100644 --- a/jd_superMarket.js +++ b/jd_superMarket.js @@ -2,7 +2,7 @@ * @Author: lxk0301 https://github.com/lxk0301 * @Date: 2020-08-16 18:54:16 * @Last Modified by: lxk0301 - * @Last Modified time: 2020-11-24 08:22:37 + * @Last Modified time: 2021-1-17 18:22:37 */ /* 东东超市(活动入口:京东APP-》首页-》京东超市-》底部东东超市) @@ -153,11 +153,11 @@ async function doDailyTask() { const res = await smtgObtainShopTaskPrize(item.taskId); console.log(`\n领取做完任务的奖励${JSON.stringify(res)}\n`) } + //做任务 if ((item.type === 1 || item.type === 11) && item.taskStatus === 0) { // 分享任务 const res = await smtgDoShopTask(item.taskId); console.log(`${item.subTitle}结果${JSON.stringify(res)}`) - } if (item.type === 2) { //逛会场 @@ -177,6 +177,15 @@ async function doDailyTask() { console.log(`${item.subTitle}结果${JSON.stringify(res)}`); } } + if (item.type === 9) { + //开卡领蓝币任务 + if (item.taskStatus === 0) { + console.log('开始开卡领蓝币任务') + const itemId = item.content[item.type].itemId; + const res = await smtgDoShopTask(item.taskId, itemId); + console.log(`${item.subTitle}结果${JSON.stringify(res)}`); + } + } if (item.type === 10) { //关注店铺 if (item.taskStatus === 0) { @@ -751,7 +760,8 @@ function updatePkActivityIdCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam function smtgDoShopTask(taskId, itemId) { return new Promise((resolve) => { const body = { - "taskId": taskId + "taskId": taskId, + "channel": "18" } if (itemId) { body.itemId = itemId;