This commit is contained in:
Faker 2022-11-04 20:14:09 +08:00
parent b74ded81a7
commit a7a16b2ec2
3 changed files with 23 additions and 6 deletions

View File

@ -9,7 +9,7 @@
DYJSHAREID = 'xxx&xxx&xxx'
10 10 10 10 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_makemoneyshop.js
By: https://github.com/6dylan6/jdpro
updatetime: 2022/11/3 自动领取邀请奖励其他优化
updatetime: 2022/11/4 修复领取奖励不全的问题
*/
const $ = new Env('特价版大赢家');
@ -102,12 +102,14 @@ let helpinfo = {};
await gettask();
await $.wait(500);
for (let item of $.tasklist) {
if (item.completedTimes < item.realCompletedTimes) {
if (item.awardStatus !== 1) {
for (let k = 0; k < (item.realCompletedTimes - item.targetTimes + 1); k++) {
console.log(`去领取${item.taskName}奖励`);
await Award(item.taskId);
await $.wait(500);
}
}
}
await $.wait(1000);
}
}

View File

@ -53,7 +53,7 @@ const JD_API_HOST = `https://api.m.jd.com/client.action`;
async function main() {
await starShopPageInfo({"taskId":"","linkId":linkId,"encryptPin":""})
if (!$.flag) await starShopDraw({"linkId":linkId,"isDailyRaffle":true});
//if (!$.flag) await starShopDraw({"linkId":linkId,"isDailyRaffle":true});
await $.wait(1000);
await apTaskList({"linkId":linkId});
if ($.allList){

15
jd_opencard_pl3.js Normal file

File diff suppressed because one or more lines are too long