File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55* 欢迎使用和提交bug反馈
66
77## 设备要求:
8- 1 . 免ROOT权限(与Tasker结合使用) 或 ROOT权限(与Edge或Tasker结合使用)
8+ 1 . 免ROOT权限(安卓7.0以上, 与Tasker结合使用) 或 ROOT权限(安卓5.0以上, 与Edge或Tasker结合使用)
992 . 安卓5.0或更高版本(需要开启无障碍服务)
10103 . Auto.js软件3.1.1 Alpha 5或更高版本
1111
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ var options = Object.assign({
1515// 所有操作都是竖屏
1616const WIDTH = Math . min ( device . width , device . height ) ;
1717const 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
2020setScreenMetrics ( WIDTH , HEIGHT ) ;
2121start ( 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 ) ;
You can’t perform that action at this time.
0 commit comments