This commit is contained in:
Shgdym 2022-09-10 12:11:00 +08:00 committed by GitHub
parent 9b3f720cc2
commit 940000d715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -628,15 +628,18 @@ async function turntableFarm() {
console.log('天天抽奖-不能自己给自己助力\n') console.log('天天抽奖-不能自己给自己助力\n')
continue continue
} }
await lotteryMasterHelp(code); await lotteryMasterHelp(code);
// console.log('天天抽奖助力结果',lotteryMasterHelpRes.helpResult) if ($.lotteryMasterHelpRes.helpResult) {
if ($.lotteryMasterHelpRes.helpResult.code === '0') { // console.log('天天抽奖助力结果',lotteryMasterHelpRes.helpResult)
console.log(`天天抽奖-助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}成功\n`) if ($.lotteryMasterHelpRes.helpResult.code === '0') {
} else if ($.lotteryMasterHelpRes.helpResult.code === '11') { console.log(`天天抽奖-助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}成功\n`)
console.log(`天天抽奖-不要重复助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}\n`) } else if ($.lotteryMasterHelpRes.helpResult.code === '11') {
} else if ($.lotteryMasterHelpRes.helpResult.code === '13') { console.log(`天天抽奖-不要重复助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}\n`)
console.log(`天天抽奖-助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}失败,助力次数耗尽\n`); } else if ($.lotteryMasterHelpRes.helpResult.code === '13') {
break; console.log(`天天抽奖-助力${$.lotteryMasterHelpRes.helpResult.masterUserInfo.nickName}失败,助力次数耗尽\n`);
break;
}
} }
} }
console.log(`---天天抽奖次数remainLotteryTimes----${remainLotteryTimes}`) console.log(`---天天抽奖次数remainLotteryTimes----${remainLotteryTimes}`)