|
@ -1,5 +1,5 @@ |
|
|
/* |
|
|
/* |
|
|
需要手动玩一局,看广告后抓取http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateRedCoupons 金币奖励body,获取userid
|
|
|
需要手动玩一局,看广告后抓取http://dati.dspmz.com/idiomgame/?s=/UserInfo/updateRedCoupons 金币奖励body,获取userid
|
|
|
应用变量可以开新用户,支付宝电话号码和邮箱地址各可以绑一次 |
|
|
应用变量可以开新用户,支付宝电话号码和邮箱地址各可以绑一次 |
|
|
跑2次,跑一次提一次,提了后提现广告次数会清0 |
|
|
跑2次,跑一次提一次,提了后提现广告次数会清0 |
|
|
*/ |
|
|
*/ |
|
@ -106,7 +106,7 @@ function encrypt (str, timestamp, userid, type) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function updateRedCoupons (userid) { |
|
|
async function updateRedCoupons (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateRedCoupons' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/UserInfo/updateRedCoupons' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let redtype = 1 |
|
|
let redtype = 1 |
|
|
let sign = encrypt(redtype, timestamp, userid) |
|
|
let sign = encrypt(redtype, timestamp, userid) |
|
@ -128,7 +128,7 @@ async function updateRedCoupons (userid) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function updateInfo (userid) { |
|
|
async function updateInfo (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateInfo' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/UserInfo/updateInfo' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt('', '', userid) |
|
|
let sign = encrypt('', '', userid) |
|
|
let body = `&userId=${userid}&sign=${sign}` |
|
|
let body = `&userId=${userid}&sign=${sign}` |
|
@ -152,7 +152,7 @@ async function updateInfo (userid) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function onAdClick (userid) { |
|
|
async function onAdClick (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onAdClick' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/CashOutInfo/onAdClick' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt(imei, timestamp, userid, 3) |
|
|
let sign = encrypt(imei, timestamp, userid, 3) |
|
|
let body = `&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body = `&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
@ -169,7 +169,7 @@ async function onAdClick (userid) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function onCheck (userid) { |
|
|
async function onCheck (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onCheck' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/CashOutInfo/onCheck' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt('', timestamp, userid) |
|
|
let sign = encrypt('', timestamp, userid) |
|
|
let body = `&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body = `&userId=${userid}&timeStamp=${timestamp}&sign=${sign}` |
|
@ -207,7 +207,7 @@ async function onCheck (userid) { |
|
|
} |
|
|
} |
|
|
//获取提现订单号
|
|
|
//获取提现订单号
|
|
|
async function getorderId (userid) { |
|
|
async function getorderId (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/onCashInfo' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/CashOutInfo/onCashInfo' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt('', timestamp, userid) |
|
|
let sign = encrypt('', timestamp, userid) |
|
|
let body = `&userId=${userid}&index=1001&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body = `&userId=${userid}&index=1001&timeStamp=${timestamp}&sign=${sign}` |
|
@ -230,7 +230,7 @@ async function getorderId (userid) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function cashOrder (orderId) { |
|
|
async function cashOrder (orderId) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashOutInfo/cashOrder' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/CashOutInfo/cashOrder' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt(orderId, timestamp, userid, 2) |
|
|
let sign = encrypt(orderId, timestamp, userid, 2) |
|
|
let body = `&userId=${userid}&orderId=${orderId}&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body = `&userId=${userid}&orderId=${orderId}&timeStamp=${timestamp}&sign=${sign}` |
|
@ -249,7 +249,7 @@ async function cashOrder (orderId) { |
|
|
} |
|
|
} |
|
|
//提现列表
|
|
|
//提现列表
|
|
|
async function Check (userid) { |
|
|
async function Check (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/CashRecord/cashPayList' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/CashRecord/cashPayList' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let sign = encrypt('0', timestamp, userid, 3) |
|
|
let sign = encrypt('0', timestamp, userid, 3) |
|
|
let body = `&userId=${userid}&page=0&timeStamp=${timestamp}&sign=${sign}` |
|
|
let body = `&userId=${userid}&page=0&timeStamp=${timestamp}&sign=${sign}` |
|
@ -274,7 +274,7 @@ async function Check (userid) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async function updatealipay (userid) { |
|
|
async function updatealipay (userid) { |
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateAlipay' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/UserInfo/updateAlipay' |
|
|
let timestamp = + new Date() |
|
|
let timestamp = + new Date() |
|
|
let newname = encodeURIComponent(accname) |
|
|
let newname = encodeURIComponent(accname) |
|
|
let str = account + accname |
|
|
let str = account + accname |
|
@ -293,9 +293,9 @@ async function updatealipay (userid) { |
|
|
|
|
|
|
|
|
async function userLogin(IMEI) |
|
|
async function userLogin(IMEI) |
|
|
{ |
|
|
{ |
|
|
//http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/userLogin
|
|
|
//http://dati.dspmz.com/idiomgame/?s=/UserInfo/userLogin
|
|
|
//&IMEI=9fbdbfc9983c87c1f2ad3266a8d841cb&msaOAID=&verSDK=29&activeIP=&channelId=win_channel_1
|
|
|
//&IMEI=9fbdbfc9983c87c1f2ad3266a8d841cb&msaOAID=&verSDK=29&activeIP=&channelId=win_channel_1
|
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/userLogin' |
|
|
let url = 'http://dati.dspmz.com/idiomgame/?s=/UserInfo/userLogin' |
|
|
let body = `&IMEI=${IMEI}&msaOAID=&verSDK=29&activeIP=&channelId=win_channel_1` |
|
|
let body = `&IMEI=${IMEI}&msaOAID=&verSDK=29&activeIP=&channelId=win_channel_1` |
|
|
//console.log(body)
|
|
|
//console.log(body)
|
|
|
//let body="&userId=67397&timeStamp=1653118736569&redType=1&iCPM=0&sign=448a1bf43e6a391258e509ad6c553040";
|
|
|
//let body="&userId=67397&timeStamp=1653118736569&redType=1&iCPM=0&sign=448a1bf43e6a391258e509ad6c553040";
|
|
@ -319,7 +319,7 @@ function populateUrlObject (url, body = '') { |
|
|
'Accept-Encoding': 'identity', |
|
|
'Accept-Encoding': 'identity', |
|
|
'Content-type': 'application/x-www-form-urlencoded', |
|
|
'Content-type': 'application/x-www-form-urlencoded', |
|
|
'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 10; V1838A Build/QP1A.190711.020)', |
|
|
'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 10; V1838A Build/QP1A.190711.020)', |
|
|
'Host': 'cpl.apkgo.cn', |
|
|
'Host': 'dati.dspmz.com', |
|
|
'Connection': 'Keep-Alive' |
|
|
'Connection': 'Keep-Alive' |
|
|
//Content-Length: 75
|
|
|
//Content-Length: 75
|
|
|
}, |
|
|
}, |
|
|