This commit is contained in:
Faker 2022-11-06 23:25:35 +08:00
parent 57bc5377ff
commit 3acef17cbb
3 changed files with 19 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#依赖安装,运行一次就好 #依赖安装,运行一次就好
#1 1 1 1 1 jd_indeps.sh #0 8 5 5 * jd_indeps.sh
#new Env('依赖安装-手动运行'); #new Env('依赖安装');
# #
npm_ver=`pnpm -v|awk -F. '{print $1}'` npm_ver=`pnpm -v|awk -F. '{print $1}'`
@ -14,7 +14,9 @@ echo -e "安装脚本所需依赖,不一定一次全部安装成功,请自
echo -e "开始安装............\n" echo -e "开始安装............\n"
#apk add g++ make pixman-dev pango-dev cairo-dev pkgconf --no-cache #apk add g++ make pixman-dev pango-dev cairo-dev pkgconf --no-cache
apk add g++ make --no-cache
pnpm config set registry https://registry.npm.taobao.org pnpm config set registry https://registry.npm.taobao.org
pnpm install -g
pnpm install -g png-js pnpm install -g png-js
pnpm install -g date-fns pnpm install -g date-fns
pnpm install -g axios@0.27.2 pnpm install -g axios@0.27.2

11
jd_qkj.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -83,7 +83,7 @@ $.flag = false
console.log('助力已满'); console.log('助力已满');
_0x383730.max = true; _0x383730.max = true;
} else if (_0x224f8e.bizCode === '108') { } else if (_0x224f8e.bizCode === '108') {
console.log('助力次数已用完'); //console.log('助力次数已用完');
_0x4ce29d = false; _0x4ce29d = false;
} else if (_0x224f8e.bizMsg.indexOf('风控') > -1) { } else if (_0x224f8e.bizMsg.indexOf('风控') > -1) {
console.log('黑号跳过!'); console.log('黑号跳过!');
@ -161,14 +161,16 @@ async function main(_0x14f2ac) {
await $.wait(3000); await $.wait(3000);
} }
} if (_0x4a424c.assignmentType === 3) { } if (_0x4a424c.assignmentType === 3) {
for (let i = 0; i < (_0x4a424c.assignmentTimesLimit - _0x4a424c.completionCnt); i++) {
console.log('任务:' + _0x4a424c.assignmentName + ',去执行'); console.log('任务:' + _0x4a424c.assignmentName + ',去执行');
let _0x440f46 = _0x4a424c.ext.followShop[0].itemId || ''; let _0x440f46 = _0x4a424c.ext.followShop[i].itemId || '';
if (!_0x440f46) { if (!_0x440f46) {
console.log('任务:' + _0x4a424c.assignmentName + ',信息异常'); console.log('任务:' + _0x4a424c.assignmentName + ',信息异常');
} }
let _0x2d2e7c = await takeRequest(_0x14f2ac, 'superBrandDoTask', '{"source":"card","activityId":' + _0x23add7 + ',"encryptProjectId":"' + _0x5add38 + '","encryptAssignmentId":"' + _0x4a424c.encryptAssignmentId + '","assignmentType":' + _0x4a424c.assignmentType + ',"itemId":"' + _0x440f46 + '","actionType":0}'); let _0x2d2e7c = await takeRequest(_0x14f2ac, 'superBrandDoTask', '{"source":"card","activityId":' + _0x23add7 + ',"encryptProjectId":"' + _0x5add38 + '","encryptAssignmentId":"' + _0x4a424c.encryptAssignmentId + '","assignmentType":' + _0x4a424c.assignmentType + ',"itemId":"' + _0x440f46 + '","actionType":0}');
console.log('执行结果:' + _0x2d2e7c.bizMsg); console.log('执行结果:' + _0x2d2e7c.bizMsg);
await $.wait(3000); await $.wait(3000);
}
} if (_0x4a424c.assignmentType === 7) { } if (_0x4a424c.assignmentType === 7) {
console.log('任务:' + _0x4a424c.assignmentName + ',去执行'); console.log('任务:' + _0x4a424c.assignmentName + ',去执行');
let _0x25a600 = _0x4a424c.ext.brandMemberList[0].itemId || ''; let _0x25a600 = _0x4a424c.ext.brandMemberList[0].itemId || '';