Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

进入蚂蚁森林失败 #79

Closed
little-twain opened this issue May 7, 2019 · 2 comments
Closed

进入蚂蚁森林失败 #79

little-twain opened this issue May 7, 2019 · 2 comments

Comments

@little-twain
Copy link

TypeError: Cannot call method "match" of null (/storage/emulated/0/js/forest.js)

可能错误代码:

    // 等待加载
    if (this.waitForLoading("种树")) {
        log("进入蚂蚁森林成功");
    } else {
        toastLog("进入蚂蚁森林失败");
        return false;
    }

##############################################################

this.take = function () {
    var filters = className("android.widget.Button").filter(function (o) {
        var desc = o.contentDescription;
        
        return (null !== desc.match(/^收集能量|^\s?$/));    
    }).find();
@little-twain
Copy link
Author

放了一晚上居然自己好了,原因不明

@xuzhawei
Copy link

我也遇到了同样的问题,并不能解决,请问是怎么回事呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants