mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 02:48:44 +08:00
update
This commit is contained in:
parent
31857039aa
commit
85881f3266
18
jd_car_exc.js
Normal file
18
jd_car_exc.js
Normal file
File diff suppressed because one or more lines are too long
13
jd_ppdt.js
13
jd_ppdt.js
File diff suppressed because one or more lines are too long
13
jd_twcyz.js
13
jd_twcyz.js
@ -113,7 +113,7 @@ async function main() {
|
||||
//}
|
||||
console.log(`\n可抽奖${$.drawtimes}次,开始...`);
|
||||
for (let i = 0; i < $.drawtimes; i++) {
|
||||
//console.log(`进行第${i + 1}抽奖:`);;
|
||||
console.log(`进行${i + 1}次抽奖:`);;
|
||||
await takeRequest('superBrandTaskLottery');//抽奖
|
||||
await $.wait(1000);
|
||||
if (!$.runFlag) break;
|
||||
@ -242,16 +242,23 @@ function dealReturn(type, data) {
|
||||
} else {
|
||||
console.log(JSON.stringify(data));
|
||||
}
|
||||
|
||||
break;
|
||||
case 'superBrandTaskLottery':
|
||||
if (data.code === '0' && data.data.bizCode !== 'TK000') {
|
||||
$.runFlag = false;
|
||||
console.log(`抽奖次数已用完`);
|
||||
console.log(`抽奖打到上限!`);
|
||||
} else if (data.code === '0' && data.data.bizCode == 'TK000') {
|
||||
if (data.data && data.data.result && data.data.result.rewardComponent && data.data.result.rewardComponent.beanList) {
|
||||
if (data?.data?.result?.rewardComponent?.beanList) {
|
||||
if (data.data.result.rewardComponent.beanList.length > 0) {
|
||||
console.log(`获得豆子:${data.data.result.rewardComponent.beanList[0].quantity}`)
|
||||
}
|
||||
} else if (data?.data?.result?.rewardComponent?.couponList) {
|
||||
$.log('获得优惠券');
|
||||
} else if (data?.data?.result?.rewardComponent?.realList) {
|
||||
$.log('可能抽中实物,到APP查看!');
|
||||
} else {
|
||||
$.log('空气');
|
||||
}
|
||||
} else {
|
||||
$.runFlag = false;
|
||||
|
12
jd_unFollow.js
Normal file
12
jd_unFollow.js
Normal file
File diff suppressed because one or more lines are too long
861
sendNotify.js
861
sendNotify.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user