修复抽奖

KingRan 2022-02-14 14:14:32 +08:00
parent 1ac107eebd
commit e82743836b
1 changed files with 7 additions and 2 deletions

View File

@ -198,7 +198,7 @@ async function run() {
}
console.log(`${$.score}值 游戏:${$.point}`)
$.runFalag = true
count = parseInt($.score/1000)
count = parseInt($.score/100)
console.log(`抽奖次数为:${count}`)
for(m=1;count--;m++){
console.log(`${m}次抽奖`)
@ -226,6 +226,11 @@ async function run() {
console.log(`后面的号都会助力:${$.shareUuid}`)
}
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
if($.index % 3 == 0) console.log('休息1分钟别被黑ip了\n可持续发展')
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 60000, 10))
} catch (e) {
console.log(e)
}
@ -331,7 +336,7 @@ async function takePostRequest(type) {
body = `activityId=${$.activityId}&pin=${encodeURIComponent($.Pin)}`
break;
case '抽奖':
url = `${domain}/dingzhi/linkgame/draw`;
url = `${domain}/dingzhi/opencard/draw`;
body = `activityId=${$.activityId}&pin=${encodeURIComponent($.Pin)}&actorUuid=${$.actorUuid}`
break;
default: