Skip to content

Commit bc3a7d1

Browse files
committed
update
bug fixes
1 parent d64f7a7 commit bc3a7d1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* 欢迎使用和提交bug反馈
66

77
## 设备要求:
8-
1. 免ROOT权限(与Tasker结合使用) 或 ROOT权限(与Edge或Tasker结合使用)
8+
1. 免ROOT权限(安卓7.0以上,与Tasker结合使用) 或 ROOT权限(安卓5.0以上,与Edge或Tasker结合使用)
99
2. 安卓5.0或更高版本(需要开启无障碍服务)
1010
3. Auto.js软件3.1.1 Alpha 5或更高版本
1111

蚂蚁森林.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var options = Object.assign({
1515
// 所有操作都是竖屏
1616
const WIDTH = Math.min(device.width, device.height);
1717
const HEIGHT = Math.max(device.width, device.height);
18-
const IS_ROOT = files.exists("/system/xbin/su") || files.exists("/system/bin/su");
18+
const IS_ROOT = files.exists("/sbin/su") || files.exists("/system/xbin/su") || files.exists("/system/bin/su");
1919

2020
setScreenMetrics(WIDTH, HEIGHT);
2121
start(options);
@@ -176,6 +176,7 @@ function AntForest(robot, options) {
176176
} else {
177177
times++;
178178
this.back();
179+
sleep(1500);
179180
this.openApp();
180181
}
181182
} while (times < this.options.max_retry_times);
@@ -449,8 +450,9 @@ function AntForest(robot, options) {
449450
log("点击->" + filters[i].contentDescription + ", " + filters[i].bounds());
450451
sleep(100);
451452
}
452-
453+
453454
// 误点了按钮则返回
455+
sleep(1000);
454456
if (id("com.alipay.mobile.ui:id/title_bar_title").exists()) {
455457
this.back();
456458
sleep(1500);

0 commit comments

Comments
 (0)