|
@ -18,7 +18,7 @@ let dtsignArr=[ |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let amount=0,userid,txflag=0 |
|
|
let amount=0,userid,txflag=0,imei |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
!(async () => { |
|
|
!(async () => { |
|
@ -28,27 +28,22 @@ let amount=0,userid,txflag=0 |
|
|
if(!(await checkEnv())) return; |
|
|
if(!(await checkEnv())) return; |
|
|
|
|
|
|
|
|
for (userid of dtsignArr){ |
|
|
for (userid of dtsignArr){ |
|
|
console.log(`开始用户:${userid}刷金币,每次刷满5000`) |
|
|
console.log(`\n=====开始用户:${userid} 每次刷满5000====`) |
|
|
|
|
|
await updateInfo(userid) |
|
|
await $.wait(200) |
|
|
await $.wait(200) |
|
|
await updateRedCoupons(userid) |
|
|
|
|
|
if (amount>3000){ |
|
|
if (amount>3000){ |
|
|
/* |
|
|
|
|
|
console.log(`开始刷3次提现广告`) |
|
|
|
|
|
for (let i = 0; i < 3; i++) { |
|
|
|
|
|
await $.wait(200) |
|
|
|
|
|
await onAdClick(userid) |
|
|
|
|
|
await $.wait(Math.floor(Math.random()*3000)+1000) |
|
|
|
|
|
} |
|
|
|
|
|
*/ |
|
|
|
|
|
console.log(`开始抽奖卷`) |
|
|
console.log(`开始抽奖卷`) |
|
|
txflag=0 |
|
|
txflag=0 |
|
|
await onCheck(userid) |
|
|
await onCheck(userid) |
|
|
} |
|
|
}else await updateRedCoupons(userid) |
|
|
|
|
|
|
|
|
//break
|
|
|
//break
|
|
|
} |
|
|
} |
|
|
console.log(`等待3分钟开始查看提现记录`) |
|
|
console.log(`等待3分钟开始查看提现记录`) |
|
|
await $.wait(5000) |
|
|
await $.wait(30000) |
|
|
for (userid of dtsignArr){ |
|
|
for (userid of dtsignArr){ |
|
|
|
|
|
console.log(`\n=========${userid}========`) |
|
|
await Check(userid) |
|
|
await Check(userid) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -122,12 +117,35 @@ async function updateRedCoupons(userid) { |
|
|
if (amount<5000) await $.wait(Math.floor(Math.random()*3000)+1000),await updateRedCoupons(userid); |
|
|
if (amount<5000) await $.wait(Math.floor(Math.random()*3000)+1000),await updateRedCoupons(userid); |
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function updateInfo(userid) { |
|
|
|
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateInfo' |
|
|
|
|
|
let timestamp= + new Date() |
|
|
|
|
|
let sign=encrypt('','',userid) |
|
|
|
|
|
let body=`&userId=${userid}&sign=${sign}` |
|
|
|
|
|
let urlObject = populateUrlObject(url,body) |
|
|
|
|
|
await httpRequest('post',urlObject) |
|
|
|
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
|
|
|
let result = JSON.parse(httpResult.body); |
|
|
|
|
|
if(!result) return |
|
|
|
|
|
//console.log(`${JSON.stringify(result)}`)
|
|
|
|
|
|
if(result.code == 0) { |
|
|
|
|
|
imei=result.imei |
|
|
|
|
|
console.log(`imei:${result.imei} `); |
|
|
|
|
|
let tel = "" + result.alipayaccount; |
|
|
|
|
|
var newTel = tel.substr(0,3) + "****" + tel.substr(7) |
|
|
|
|
|
let aliname=result.alipayname |
|
|
|
|
|
var newname=aliname.substr(0,1)+'**'+aliname.substr(2) |
|
|
|
|
|
amount=result.redcoupons |
|
|
|
|
|
console.log(`绑定:${newTel}-${newname} 答题次数:${result.answernum} 金币数:${amount}`); |
|
|
|
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
async function onAdClick(userid) { |
|
|
async function onAdClick(userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onAdClick' |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onAdClick' |
|
|
let timestamp= + new Date() |
|
|
let timestamp= + new Date() |
|
|
let sign=encrypt('',timestamp,userid) |
|
|
let sign=encrypt(imei,timestamp,userid,3) |
|
|
let body=`&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body=`&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
|
|
|
|
|
|
|
let urlObject = populateUrlObject(url,body) |
|
|
let urlObject = populateUrlObject(url,body) |
|
|
await httpRequest('post',urlObject) |
|
|
await httpRequest('post',urlObject) |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
@ -151,10 +169,10 @@ async function onCheck(userid) { |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
let result = JSON.parse(httpResult.body); |
|
|
let result = JSON.parse(httpResult.body); |
|
|
if(!result) return |
|
|
if(!result) return |
|
|
console.log(`${JSON.stringify(result)}`) |
|
|
//console.log(`${JSON.stringify(result)}`)
|
|
|
if(result.code ==0) { //提现广告次数不够
|
|
|
if(result.code ==0) { //提现广告次数不够
|
|
|
console.log(`提现卷抽奖:提现广告完成${result.task.curclick}/${result.task.looknum} 提现请求:${result.cashnum}`); |
|
|
console.log(`提现卷抽奖:提现广告完成${result.task.curclick}/${result.task.looknum} 提现请求:${result.cashnum}`); |
|
|
//if (result.cashnum<=3){
|
|
|
if (result.cashnum<=3){ |
|
|
if (result.task.curclick<3){ |
|
|
if (result.task.curclick<3){ |
|
|
console.log(`刷提现广告`) |
|
|
console.log(`刷提现广告`) |
|
|
let k=3-result.task.curclick; |
|
|
let k=3-result.task.curclick; |
|
@ -167,18 +185,18 @@ async function onCheck(userid) { |
|
|
if (txflag==1){ |
|
|
if (txflag==1){ |
|
|
console.log(`开始获取订单号`) |
|
|
console.log(`开始获取订单号`) |
|
|
await $.wait(2000) |
|
|
await $.wait(2000) |
|
|
await orderId(userid) |
|
|
await getorderId(userid) |
|
|
}else console.log(`刷提现广告失败,跳过`) |
|
|
}else console.log(`刷提现广告失败,跳过`) |
|
|
//}else console.log(`超过今日提现次数,跳过`)
|
|
|
}else console.log(`超过今日提现次数,跳过`) |
|
|
}else { |
|
|
}else { |
|
|
console.log(`提现广告已完成`) |
|
|
console.log(`提现广告已完成`) |
|
|
console.log(`开始获取订单号`) |
|
|
console.log(`开始获取订单号`) |
|
|
await $.wait(2000) |
|
|
await $.wait(2000) |
|
|
await orderId() |
|
|
await getorderId(userid) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//获取提现订单号
|
|
|
//获取提现订单号
|
|
|
async function orderId(userid) { |
|
|
async function getorderId(userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onCashInfo' |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onCashInfo' |
|
|
let timestamp= + new Date() |
|
|
let timestamp= + new Date() |
|
|
let sign=encrypt('',timestamp,userid) |
|
|
let sign=encrypt('',timestamp,userid) |
|
@ -189,7 +207,7 @@ async function orderId(userid) { |
|
|
await httpRequest('post',urlObject) |
|
|
await httpRequest('post',urlObject) |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
let result = JSON.parse(httpResult.body); |
|
|
let result = JSON.parse(httpResult.body); |
|
|
console.log(`${JSON.stringify(result)}`) |
|
|
//console.log(`${JSON.stringify(result)}`)
|
|
|
if(!result) return |
|
|
if(!result) return |
|
|
if(result.code == 1) { |
|
|
if(result.code == 1) { |
|
|
orderId=result.orderId |
|
|
orderId=result.orderId |
|
@ -214,7 +232,7 @@ async function cashOrder(orderId) { |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
if(!httpResult || httpResult.statusCode != 200) {return;} |
|
|
let result = JSON.parse(httpResult.body); |
|
|
let result = JSON.parse(httpResult.body); |
|
|
if(!result) return |
|
|
if(!result) return |
|
|
console.log(`${JSON.stringify(result)}`) |
|
|
//console.log(`${JSON.stringify(result)}`)
|
|
|
if(result.code == 1) { |
|
|
if(result.code == 1) { |
|
|
console.log(`提现:${result.price} 剩余:${result.data.redcoupons}`); |
|
|
console.log(`提现:${result.price} 剩余:${result.data.redcoupons}`); |
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|