auto.js实现攒攒/点点平台自动定时提现

auto.js实现攒攒/点点平台自动定时提现

下载点点/攒攒APP、Auto.js APP,运行附带的脚本即可实现自动提现操作,部分代码片段:

function runMyApp(){
    //auto();
    console.show();
    log("开始自动提现");
    var storage=storages.create("params");
    var timespace=parseInt(storage.get("timespace"))*1000;
    var userItems=storage.get("userItems");
    var platformType = storage.get("platformType");

    if(platformType==1){
        launchApp("攒攒");
    }else if(platformType==2){
        launchApp("点点");
    }
    sleep(2000);
    //根据账号数开始循环
    for(var i=0;i< userItems.length;i++){
        var num= i+1;
        log("登录第 "+num+" 个账号...");
        zanDian(userItems[i].username,userItems[i].loginpw);
    }

    sleep(2000);
    //启动定时器
    if(!timer){
        timer = setInterval(() => {
            mutilThread()
        }, timespace);
    }
    //停止多线程
    //thread.interrupt();
}

function zanDian(username,loinpw){
  
    textContains("登录").waitFor();

    //登录
    log("当前账号:"+username);
    setText(0,username);
    setText(1,loinpw);
    className("android.view.View").clickable(true).depth(3).indexInParent(3).findOne().click();
    textContains("个人中心").waitFor();
    log("登录完成!");

    //进入个人中心
    className("android.view.View").text("个人中心").findOne().click(); 
    textContains("立即提现").waitFor();
    if(!className("android.view.View").text("立即提现").exists()){
        //不存在则返回
        back();
        sleep(500);
        className("android.view.View").text("个人中心").findOne().click(); 
        textContains("立即提现").waitFor();

    }
    
    log("进入个人中心!");
    sleep(1000);


    //获取金豆
    var logoutbtn= text("退出登录").findOne();
    var jindoufuji= logoutbtn.parent().parent().parent().child(0).child(0);
    var tmpyz= jindoufuji.child(3).text();     
    var yzshu=parseInt(tmpyz.replace(/[^0-9]/ig,""));
    log("援助金豆: "+yzshu);

    var tmpjl=jindoufuji.child(4).text();
    var jlshu=parseInt(tmpjl.replace(/[^0-9]/ig,""));
    log("奖励金豆: "+jlshu);

    var tmpdj=jindoufuji.child(5).text();
    var djshu=parseInt(tmpdj.replace(/[^0-9]/ig,""));
    log("冻结金豆: "+djshu);

    //金豆提现
    var txjindou=((yzshu+jlshu)-djshu)/1000;
    if(txjindou <1){
        log("当前账号,金币不足1000!");               
        
    }else{
        setText(0,parseInt(txjindou)*1000);
        sleep(800);
        className("android.view.View").text("立即提现").findOne().click(); 
        log("提现金豆数: "+parseInt(txjindou)*1000);
    }

    //退出登录
    sleep(800);
    logoutbtn.click();


}

资源下载: https://pan.baidu.com/s/11SMJRpVa_pJaPJQoaFy9gw ;提取码: srn6

接受定制,可加Q:3045918815

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

@潮酷Tech.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值