|
|
@ -13,10 +13,9 @@ const notifyFlag =($.isNode() ? process.env.fknotify : $.getdata('fknotify'))|| |
|
|
|
let tsxx='',tsflag=0 //推送信息
|
|
|
|
// token 数据
|
|
|
|
let dtsign = ($.isNode() ? process.env.dtsign : $.getdata('dtsign')); |
|
|
|
let dtsignArr=[ |
|
|
|
'68331' |
|
|
|
] |
|
|
|
let dtsignArr=[] |
|
|
|
|
|
|
|
//'68331','70733', '70734'
|
|
|
|
|
|
|
|
let amount=0,userid,txflag=0,imei |
|
|
|
|
|
|
@ -27,20 +26,23 @@ let amount=0,userid,txflag=0,imei |
|
|
|
}else { |
|
|
|
if(!(await checkEnv())) return; |
|
|
|
|
|
|
|
for (userid of dtsignArr){ |
|
|
|
console.log(`\n=====开始用户:${userid} 每次刷满5000====`) |
|
|
|
await updateInfo(userid) |
|
|
|
await $.wait(200) |
|
|
|
for (userid of dtsignArr) { |
|
|
|
console.log(`\n=====开始用户:${userid} 每次刷满5000====`) |
|
|
|
await updateInfo(userid) |
|
|
|
await $.wait(200) |
|
|
|
|
|
|
|
if (amount>3000){ |
|
|
|
if (amount < 3000) { |
|
|
|
await updateRedCoupons(userid) |
|
|
|
} |
|
|
|
|
|
|
|
console.log(`开始抽奖卷`) |
|
|
|
txflag=0 |
|
|
|
await onCheck(userid) |
|
|
|
}else await updateRedCoupons(userid) |
|
|
|
if (amount > 3000) { |
|
|
|
console.log(`开始抽奖卷`) |
|
|
|
txflag = 0 |
|
|
|
await onCheck(userid) |
|
|
|
} |
|
|
|
|
|
|
|
//break
|
|
|
|
} |
|
|
|
//break
|
|
|
|
} |
|
|
|
console.log(`等待3分钟开始查看提现记录`) |
|
|
|
await $.wait(100000) |
|
|
|
for (userid of dtsignArr){ |
|
|
@ -265,6 +267,24 @@ async function Check(userid) { |
|
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
|
} |
|
|
|
|
|
|
|
async function updatealipay(userid) { |
|
|
|
let url = 'http://cpl.apkgo.cn/idiomgame/?s=/UserInfo/updateAlipay' |
|
|
|
let timestamp= + new Date() |
|
|
|
let newname=encodeURIComponent(accname) |
|
|
|
let str=account+accname |
|
|
|
let sign=encrypt(str,timestamp,userid) |
|
|
|
let body=`&userId=${userid}&account=${account}&name=${newname}&timeStamp=${timestamp}&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) { |
|
|
|
//console.log(`绑定:result.msg`);
|
|
|
|
}else console.log(`${JSON.stringify(result)}`) |
|
|
|
} |
|
|
|
|
|
|
|
/////////////////////////////////
|
|
|
|
function populateUrlObject(url,body=''){ |
|
|
|
let host = url.replace('//','/').split('/')[1] |
|
|
|