From bc3a7d116422513151f57620cd5403c2df4ac09f Mon Sep 17 00:00:00 2001 From: ridersam Date: Tue, 17 Apr 2018 23:59:06 +0800 Subject: [PATCH] update bug fixes --- README.md | 2 +- "\350\232\202\350\232\201\346\243\256\346\236\227.js" | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bf33e15..e123d1b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ * 欢迎使用和提交bug反馈 ## 设备要求: -1. 免ROOT权限(与Tasker结合使用) 或 ROOT权限(与Edge或Tasker结合使用) +1. 免ROOT权限(安卓7.0以上,与Tasker结合使用) 或 ROOT权限(安卓5.0以上,与Edge或Tasker结合使用) 2. 安卓5.0或更高版本(需要开启无障碍服务) 3. Auto.js软件3.1.1 Alpha 5或更高版本 diff --git "a/\350\232\202\350\232\201\346\243\256\346\236\227.js" "b/\350\232\202\350\232\201\346\243\256\346\236\227.js" index e9cdf56..49a9515 100644 --- "a/\350\232\202\350\232\201\346\243\256\346\236\227.js" +++ "b/\350\232\202\350\232\201\346\243\256\346\236\227.js" @@ -15,7 +15,7 @@ var options = Object.assign({ // 所有操作都是竖屏 const WIDTH = Math.min(device.width, device.height); const HEIGHT = Math.max(device.width, device.height); -const IS_ROOT = files.exists("/system/xbin/su") || files.exists("/system/bin/su"); +const IS_ROOT = files.exists("/sbin/su") || files.exists("/system/xbin/su") || files.exists("/system/bin/su"); setScreenMetrics(WIDTH, HEIGHT); start(options); @@ -176,6 +176,7 @@ function AntForest(robot, options) { } else { times++; this.back(); + sleep(1500); this.openApp(); } } while (times < this.options.max_retry_times); @@ -449,8 +450,9 @@ function AntForest(robot, options) { log("点击->" + filters[i].contentDescription + ", " + filters[i].bounds()); sleep(100); } - + // 误点了按钮则返回 + sleep(1000); if (id("com.alipay.mobile.ui:id/title_bar_title").exists()) { this.back(); sleep(1500);