点点券脚本通知:京东已在领取任务、签到、领取点点券三个添加了log做了校验,暂时无可解决
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lxk0301 https://gitee.com/lxk0301
|
* @Author: lxk0301 https://gitee.com/lxk0301
|
||||||
* @Date: 2020-11-20 11:42:03
|
* @Date: 2020-11-20 11:42:03
|
||||||
* @Last Modified by: lxk0301
|
* @Last Modified by: lxk0301
|
||||||
* @Last Modified time: 2021-4-25 12:27:14
|
* @Last Modified time: 2021-05-28 17:27:14
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
点点券,可以兑换无门槛红包(1元,5元,10元,100元,部分红包需抢购)
|
点点券,可以兑换无门槛红包(1元,5元,10元,100元,部分红包需抢购)
|
||||||
@@ -48,6 +48,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
|||||||
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
|
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(`\n通知:京东已在领取任务、签到、领取点点券三个添加了log做了校验,暂时无可解决\n`);
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
cookie = cookiesArr[i];
|
cookie = cookiesArr[i];
|
||||||
@@ -83,9 +84,9 @@ async function jd_necklace() {
|
|||||||
try {
|
try {
|
||||||
await necklace_homePage();
|
await necklace_homePage();
|
||||||
await doTask();
|
await doTask();
|
||||||
|
await sign();
|
||||||
await necklace_homePage();
|
await necklace_homePage();
|
||||||
await receiveBubbles();
|
await receiveBubbles();
|
||||||
await sign();
|
|
||||||
await necklace_homePage();
|
await necklace_homePage();
|
||||||
// await necklace_exchangeGift($.totalScore);//自动兑换多少钱的无门槛红包,1000代表1元,默认兑换全部点点券
|
// await necklace_exchangeGift($.totalScore);//自动兑换多少钱的无门槛红包,1000代表1元,默认兑换全部点点券
|
||||||
await showMsg();
|
await showMsg();
|
||||||
@@ -126,12 +127,13 @@ async function doTask() {
|
|||||||
}
|
}
|
||||||
async function receiveBubbles() {
|
async function receiveBubbles() {
|
||||||
for (let item of $.bubbles) {
|
for (let item of $.bubbles) {
|
||||||
console.log(`开始领取点点券\n`);
|
console.log(`\n开始领取点点券`);
|
||||||
await necklace_chargeScores(item.id)
|
await necklace_chargeScores(item.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function sign() {
|
async function sign() {
|
||||||
if ($.signInfo.todayCurrentSceneSignStatus === 1) {
|
if ($.signInfo.todayCurrentSceneSignStatus === 1) {
|
||||||
|
console.log(`\n开始每日签到`)
|
||||||
await necklace_sign();
|
await necklace_sign();
|
||||||
} else {
|
} else {
|
||||||
console.log(`当前${new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000).toLocaleString()}已签到`)
|
console.log(`当前${new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000).toLocaleString()}已签到`)
|
||||||
@@ -151,8 +153,8 @@ async function reportTask(item = {}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//首页浏览XX秒的任务
|
//首页浏览XX秒的任务
|
||||||
if (item['taskType'] === 3) await doAppTask('3');
|
if (item['taskType'] === 3) await doAppTask('3', item.id);
|
||||||
if (item['taskType'] === 4) await doAppTask('4');
|
if (item['taskType'] === 4) await doAppTask('4', item.id);
|
||||||
}
|
}
|
||||||
//每日签到福利
|
//每日签到福利
|
||||||
function necklace_sign() {
|
function necklace_sign() {
|
||||||
@@ -174,6 +176,8 @@ function necklace_sign() {
|
|||||||
// $.taskConfigVos = data.data.result.taskConfigVos;
|
// $.taskConfigVos = data.data.result.taskConfigVos;
|
||||||
// $.exchangeGiftConfigs = data.data.result.exchangeGiftConfigs;
|
// $.exchangeGiftConfigs = data.data.result.exchangeGiftConfigs;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.log(`每日签到失败:${JSON.stringify(data)}\n`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -239,6 +243,8 @@ function necklace_chargeScores(bubleId) {
|
|||||||
// $.taskConfigVos = data.data.result.taskConfigVos;
|
// $.taskConfigVos = data.data.result.taskConfigVos;
|
||||||
// $.exchangeGiftConfigs = data.data.result.exchangeGiftConfigs;
|
// $.exchangeGiftConfigs = data.data.result.exchangeGiftConfigs;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.log(`领取点点券失败:${JSON.stringify(data)}\n`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -347,7 +353,7 @@ function necklace_homePage() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async function doAppTask(type = '3') {
|
async function doAppTask(type = '3', id) {
|
||||||
let body = {
|
let body = {
|
||||||
"pageClickKey": "CouponCenter",
|
"pageClickKey": "CouponCenter",
|
||||||
"childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
|
"childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
|
||||||
@@ -366,12 +372,14 @@ async function doAppTask(type = '3') {
|
|||||||
"childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
|
"childActivityUrl": "openapp.jdmobile%3a%2f%2fvirtual%3fparams%3d%7b%5c%22category%5c%22%3a%5c%22jump%5c%22%2c%5c%22des%5c%22%3a%5c%22couponCenter%5c%22%7d",
|
||||||
"pageClickKey": "CouponCenter",
|
"pageClickKey": "CouponCenter",
|
||||||
"lat": "",
|
"lat": "",
|
||||||
"taskId": "necklace_187",
|
"taskId": "necklace_" + id,
|
||||||
"lng": "",
|
"lng": "",
|
||||||
}
|
}
|
||||||
if (type === '4') {
|
if (type === '4') {
|
||||||
|
console.log('需等待30秒')
|
||||||
await $.wait(15000);
|
await $.wait(15000);
|
||||||
body['taskId'] = 'necklace_188';
|
} else {
|
||||||
|
console.log('需等待15秒')
|
||||||
}
|
}
|
||||||
await $.wait(15500);
|
await $.wait(15500);
|
||||||
await getCcTaskList('reportCcTask', body, type);
|
await getCcTaskList('reportCcTask', body, type);
|
||||||
@@ -382,8 +390,8 @@ function getCcTaskList(functionId, body, type = '3') {
|
|||||||
if (functionId === 'getCcTaskList') {
|
if (functionId === 'getCcTaskList') {
|
||||||
url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1614320848090&sign=d3259c0c19f6c792883485ae65f8991c&sv=111`
|
url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1614320848090&sign=d3259c0c19f6c792883485ae65f8991c&sv=111`
|
||||||
}
|
}
|
||||||
if (type === '3' && functionId === 'reportCcTask') url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619362241008&sign=a731e69df875e90ba3c865432625bfab&sv=122`
|
if (type === '3' && functionId === 'reportCcTask') url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622194121039&sign=d565c4594b8e05645f1fe9a495ac7a7d&sv=122`
|
||||||
if (type === '4' && functionId === 'reportCcTask') url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1619361713027&sign=c45f3955a83aeb927b7b1bbd8445526a&sv=121`
|
if (type === '4' && functionId === 'reportCcTask') url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1622193986049&sign=f5abd9fd7b9b8abaa25b34088f9e8a54&sv=102`
|
||||||
// if (functionId === 'reportCcTask') {
|
// if (functionId === 'reportCcTask') {
|
||||||
// url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1614320901023&sign=26e637ba072ddbcfa44c5273ef928696&sv=111`
|
// url = `https://api.m.jd.com/client.action?functionId=${functionId}&body=${escape(JSON.stringify(body))}&uuid=8888888&client=apple&clientVersion=9.4.1&st=1614320901023&sign=26e637ba072ddbcfa44c5273ef928696&sv=111`
|
||||||
// }
|
// }
|
||||||
|
Reference in New Issue
Block a user