var km = ui.ip3.text(); if(km.trim() == ){ toast( 卡密不能为空 ); return; } pjysdk.debug =false //true; // 开发时建议开启debug,有详细输出 pjysdk.SetCard(km); login_ret = pjysdk.CardLogin(); //console.log(login_ret); if (login_ret.code !== 0) { // 登录失败提示 toastLog(login_ret.message); return; }
//卡密验证通过 toastLog( 卡密验证成功 );
toastLog( 超强防封模块开始启动...... ); let ret = pjysdk.GetTimeRemaining(); console.info( 卡密剩余 + ret + 秒 ) sleep(1000) if (launch( com.yitantech.gaigai )) { launch( com.yitantech.gaigai ) } else { toast( 未安装比心app ) sleep(1000) exit() }
去抢单页面(); app.launchApp( ) while(!text( 长按语音抢单 ).findOnce()){ toast( 开始自动进入抢单页面,如失败请手动进入语音抢单页面 ) sleep(1000) } files.write( /sdcard/ip1.dat ,ui.ip1.getText()) wait_time = parseInt(ui.ip1.getText())
toastLog( 准备开始发送语音 ) sleep(1000)
count = 0 temp_inx = 0 while(true){ core() count++ // if(count == 3){
// // del_all_files() // // toastLog( 清空缓存成功... )
// } if(count % ip4 == 0){ toastLog( 开始休眠 +ip5+ 分钟 ) sleepTime = ip5*60 while(sleepTime = 0){ sleep(2000) sleepTime = sleepTime - 2 toastLog( 还剩 +sleepTime+ 秒完成休眠 ) }
}
temp_time = wait_time - 2 // sleep(wait_time) while(temp_time 0){ temp_time = temp_time - 2 sleep(2000) toastLog( 将在 +temp_time.toString()+ 秒后发送下一条语音... ) }
toastLog( 开始刷新 ) swipe(device.width*0.5,device.height*0.4,device.width*0.5,device.height*0.8,500) sleep(2000)
}
for (let i = 0; i ar2.length; ++i) {
if (id( searchView ).findOne(1000)) {
//此处是两个版本的搜索ID控件判断 id( searchView ).findOne().click() } else {
id( timeline_text_search ).findOne().click()
}
sleep(1000) console.info( 搜索用户: + ar2[i]) 名字 = ar2[i] id( editText ).findOne().setText(名字) sleep(1000) var 搜索 = id( toolbarButtonText ).className( android.widget.TextView ).text( 搜索 ).findOne().bounds() click(搜索.centerX(), 搜索.centerY()); sleep(1000)
if (id( loading_desc ).text( 空空如也 ).findOne(1000)) { sleep(1000) toastLog( 找不到用户,返回重新获取搜索 ) sleep(1000) back(); sleep(1000)
}else {
toastLog( 出现相关用户,开始操作 ) if (id( nameTv ).text(名字).findOne(2000)) {
sleep(1000) var 点击名字1 = id( nameTv ).text(名字).className( android.widget.TextView ).findOne(2000).bounds(); click(点击名字1.centerX(), 点击名字1.centerY()); }else { toastLog( 执行第二种点击操作... ) sleep(1000) id( cl_wrapper ).className( android.view.ViewGroup ).findOne(1000).click(); sleep(1000) }
}
sleep(1000) id( chat ).findOne().click(); sleep(1000)
发送文字(); sleep(1000) sleep(1000) back(); sleep(1000) back(); sleep(1000) back(); sleep(1000)
if (id( editText ).exists()) { back() sleep(1000) } } toastLog( 前往发现老板页面获取名字 ) id( bottomItemContainer ).className( android.view.ViewGroup ).indexInParent(4).findOne().click() sleep(1000) id( tvGodNewbieItemFuncTitle ).text( 发现新老板 ).findOne().parent().parent().click() sleep(1000) toastLog( 开始刷新!! ) sleep(1000) swipe(device.width * 0.5, device.height * 0.4, device.width * 0.5, device.height * 0.8, 500); sleep(1000)
下一篇:永劫无间招兼职陪陪打手,单多