diff --git a/dati.js b/dati.js index 08b285c..f387a1e 100644 --- a/dati.js +++ b/dati.js @@ -31,17 +31,18 @@ let amount=0,userid,txflag=0,imei console.log(`\n=====开始用户:${userid} 每次刷满5000====`) await updateInfo(userid) await $.wait(200) + if (amount>3000){ console.log(`开始抽奖卷`) txflag=0 await onCheck(userid) }else await updateRedCoupons(userid) - + //break } console.log(`等待3分钟开始查看提现记录`) - await $.wait(30000) + await $.wait(100000) for (userid of dtsignArr){ console.log(`\n=========${userid}========`) await Check(userid) @@ -130,12 +131,13 @@ async function updateInfo(userid) { 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) + imei=result.imei||'' + console.log(`imei:${imei} `); + let tel = result.alipayaccount||''; + tel=''+tel + if (tel)var newTel = tel.substr(0,3) + "****" + tel.substr(7) let aliname=result.alipayname - var newname=aliname.substr(0,1)+'**'+aliname.substr(2) + if (aliname)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)}`) diff --git a/package.json b/package.json index d140387..f3219c3 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,8 @@ "https-proxy-agent": "^5.0.0", "md5": "^2.3.0", "request": "^2.88.2", + "sablejs": "1.0.8", + "sync-request": "^6.1.0", "tough-cookie": "^4.0.0", "tunnel": "0.0.6" }