function 悟空浏览器(appName, executeCount, execTimes, timesInterval, IsAutoSign, IsAutoComment, IsClearCache, IsCashOut, probability, execAutoBrushDate, CurveBrushScreen, IsCloseApp, isFragmentation, fragmentationTime) {
setJurisdiction()
closeAd()
clickVideoMenu()
for (var i = 1; i < executeCount; i++) {
try {
if (checkTimesIsZeroTime(execAutoBrushDate, 3)) {
return;
}
let exectue_status = computerExctueTime(appName, execTimes, isFragmentation, fragmentationTime)
if (exectue_status == 1) {
if (fragmentAutoWeixin) {
微信阅读()
}
return //执行下一个app
} else if (exectue_status == 2) {
if (IsAutoSign) {
autoSign()
}
if(IsClearCache){
clearAppCache()
}
if (IsCashOut) {
//autoCashOut()
}
toastInfo(appName + "今日薅羊毛时间已到,进入下一个app...");
return;//今日时间已到
} else if (exectue_status == 3) {
}
var start = new Date().getTime();//App起始时间
let x1 = random(device.width * 0.7, device.width * 0.8);
let y1 = device.height - (device.height * 0.2)
let x2 = random(device.width * 0.7, device.width * 0.8);
let y2 = device.height * 0.2
let pressTime = random(600, 700);
randomHeart('starImage', probability);//随机关注
randomUpSildeScreen(x1, y2, x1, y1, pressTime, probability);
randomDownSildeScreen(x1, y1, x2, y2, pressTime, timesInterval, probability);
slideScreenDown(x1, y1, x2, y2, pressTime, timesInterval, CurveBrushScreen, IsCloseApp, isFragmentation, fragmentationTime);
appRunTimeRecord(appName, (new Date().getTime() - start))//记录一次时间
} catch (error) {
toastError(appName + "刷刷刷时出现错误!" + error);
}
}
function keepBrush() {
if (text("搞笑").exists()) {
clickVideoMenu()
}
}
function closeAd() {
clickControlBounds(id("cancel_action"));
}
function clickVideoMenu() {
if (text("视频").exists()) {
clickControlBounds(text("视频"))
}
}
function autoCashOut() {
try {
if (id("left_button").exists()) {
clickControlBounds(id("left_button"));
sleepRandom3()
}
if (id("closeButton").exists()) {
clickControlBounds(id("closeButton"));
}
if (clickControl(text("我的"))) {
if (clickControl(text("提现"))) {
sleepRandom0()
if (text("确认提现").exists()) {
clickControlBounds(text("确认提现"))
sleepRandom1()
if (id("action_button_left").exists()) {
clickControlBounds(id("action_button_left"));
}
}
}
}
} catch (error) {
toastError(error);
}
}
function autoSign() {
toastLog("开始签到")
let signValue = adengetSignTime(appName);
if (getDate() == signValue) {
toastLog("已签到本次签到跳过...");
return;
}
if (clickControlBounds(text("赚钱"))) {
sleepRandom3() //是个网页加载的慢
sleepRandom1() //等待弹窗
recordSignTime(appName);
sleepRandom1() //等待弹窗
back()
sleepRandom1() //等待弹窗
clickControlBounds(text("短视频"));
}
}
/**
* 清理缓存
*/
function clearAppCache() {
toastLog("开始App清理缓存");
if (clickControlBounds(text("我的"))) {
sleepRandom3() //是个网页加载的慢
swipeDown()
if (clickControlBounds(text("设置"))) {
sleepRandom1()
swipeDown()
if (clickControlBounds(text("清除系统缓存"))) {
sleepRandom1()
clickControlBounds(text("清除"))
sleepRandom1()
back()
sleepRandom1()
clickControlBounds(text("短视频"));
}
} else {
toastLog("未发现settings")
}
} else {
toastLog("未发现我的")
}
}
}
没啥难的算是记录吧