master
parent
e99fa71772
commit
385029fb53
|
@ -132,8 +132,11 @@ async function run() {
|
||||||
if(o.status == 0){
|
if(o.status == 0){
|
||||||
flag = true
|
flag = true
|
||||||
$.joinVenderId = o.venderId
|
$.joinVenderId = o.venderId
|
||||||
await $.wait(parseInt(Math.random() * 3000 + 3000, 10))
|
|
||||||
await joinShop()
|
await joinShop()
|
||||||
|
if($.joinShopresmessage === '活动太火爆,请稍后再试'){
|
||||||
|
console.log('重新开卡')
|
||||||
|
await joinShop()
|
||||||
|
}
|
||||||
await $.wait(parseInt(Math.random() * 1000 + 1000, 10))
|
await $.wait(parseInt(Math.random() * 1000 + 1000, 10))
|
||||||
await takePostRequest('activityContent');
|
await takePostRequest('activityContent');
|
||||||
await takePostRequest('drawContent');
|
await takePostRequest('drawContent');
|
||||||
|
@ -163,7 +166,7 @@ async function run() {
|
||||||
}
|
}
|
||||||
console.log(`${$.score}值 游戏:${$.point}`)
|
console.log(`${$.score}值 游戏:${$.point}`)
|
||||||
$.runFalag = true
|
$.runFalag = true
|
||||||
let count = parseInt($.score/1000)
|
let count = parseInt($.score/100)
|
||||||
console.log(`抽奖次数为:${count}`)
|
console.log(`抽奖次数为:${count}`)
|
||||||
for(m=1;count--;m++){
|
for(m=1;count--;m++){
|
||||||
console.log(`第${m}次抽奖`)
|
console.log(`第${m}次抽奖`)
|
||||||
|
@ -193,8 +196,8 @@ async function run() {
|
||||||
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
|
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
|
||||||
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
|
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
|
||||||
|
|
||||||
if($.index % 3 == 0) console.log('休息1分钟,别被黑ip了\n可持续发展')
|
if($.index % 5 == 0) console.log('休息一下,别被黑ip了\n可持续发展')
|
||||||
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 60000, 10))
|
if($.index % 5 == 0) await $.wait(parseInt(Math.random() * 5000 + 10000, 10))
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
@ -718,6 +721,7 @@ function joinShop() {
|
||||||
if(typeof res == 'object'){
|
if(typeof res == 'object'){
|
||||||
if(res.success === true){
|
if(res.success === true){
|
||||||
console.log(res.message)
|
console.log(res.message)
|
||||||
|
$.joinShopresmessage = res.message
|
||||||
if(res.result && res.result.giftInfo){
|
if(res.result && res.result.giftInfo){
|
||||||
for(let i of res.result.giftInfo.giftList){
|
for(let i of res.result.giftInfo.giftList){
|
||||||
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
||||||
|
|
|
@ -137,6 +137,10 @@ async function run() {
|
||||||
flag = true
|
flag = true
|
||||||
$.joinVenderId = o.value
|
$.joinVenderId = o.value
|
||||||
await joinShop()
|
await joinShop()
|
||||||
|
if($.joinShopresmessage === '活动太火爆,请稍后再试'){
|
||||||
|
console.log('重新开卡')
|
||||||
|
await joinShop()
|
||||||
|
}
|
||||||
await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
|
await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
|
||||||
await takePostRequest('drawContent');
|
await takePostRequest('drawContent');
|
||||||
await takePostRequest('checkOpenCard');
|
await takePostRequest('checkOpenCard');
|
||||||
|
@ -180,8 +184,8 @@ async function run() {
|
||||||
}
|
}
|
||||||
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
|
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
|
||||||
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
|
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
|
||||||
if($.index % 3 == 0) console.log('休息1分钟,别被黑ip了\n可持续发展')
|
if($.index % 3 == 0) console.log('休息一下,别被黑ip了\n可持续发展')
|
||||||
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 60000, 10))
|
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 10000, 10))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
@ -630,6 +634,7 @@ function joinShop() {
|
||||||
if(typeof res == 'object'){
|
if(typeof res == 'object'){
|
||||||
if(res.success === true){
|
if(res.success === true){
|
||||||
console.log(res.message)
|
console.log(res.message)
|
||||||
|
$.joinShopresmessage = res.message
|
||||||
if(res.result && res.result.giftInfo){
|
if(res.result && res.result.giftInfo){
|
||||||
for(let i of res.result.giftInfo.giftList){
|
for(let i of res.result.giftInfo.giftList){
|
||||||
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
||||||
|
|
|
@ -127,6 +127,10 @@ async function run() {
|
||||||
flag = true
|
flag = true
|
||||||
$.joinVenderId = o.venderId
|
$.joinVenderId = o.venderId
|
||||||
await joinShop()
|
await joinShop()
|
||||||
|
if($.joinShopresmessage === '活动太火爆,请稍后再试'){
|
||||||
|
console.log('重新开卡')
|
||||||
|
await joinShop()
|
||||||
|
}
|
||||||
await $.wait(parseInt(Math.random() * 2000 + 2000, 10))
|
await $.wait(parseInt(Math.random() * 2000 + 2000, 10))
|
||||||
await takePostRequest('activityContent');
|
await takePostRequest('activityContent');
|
||||||
await takePostRequest('drawContent');
|
await takePostRequest('drawContent');
|
||||||
|
@ -716,6 +720,7 @@ function joinShop() {
|
||||||
if(typeof res == 'object'){
|
if(typeof res == 'object'){
|
||||||
if(res.success === true){
|
if(res.success === true){
|
||||||
console.log(res.message)
|
console.log(res.message)
|
||||||
|
$.joinShopresmessage = res.message
|
||||||
if(res.result && res.result.giftInfo){
|
if(res.result && res.result.giftInfo){
|
||||||
for(let i of res.result.giftInfo.giftList){
|
for(let i of res.result.giftInfo.giftList){
|
||||||
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
console.log(`入会获得:${i.discountString}${i.prizeName}${i.secondLineDesc}`)
|
||||||
|
|
Loading…
Reference in New Issue