mirror of https://github.com/KingRan/KR.git
修复抽奖
parent
1ac107eebd
commit
e82743836b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue