Skip to content

wx.qq.com detect phantomjs and disabled it #21

@huan

Description

@huan

Update 2016-9-1

Phantomjs work well now, without any modification at wechaty side.

It seems like js code in wx upgraded again, and the accident that disable phantomjs is not the purpose (more like a compatible bug of checksum code run in phantomjs).


before fix, you can switch to chrome instead of phantomjs to use wechaty as usual.

$ WECHATY_HEAD=chrome node example/ding-dong-bot.js

detail:

https://res.wx.qq.com/zh_CN/htmledition/v2/js/webwxApp2fd632.js

    try {
        var p = angular.bootstrap.toString().replace(/\n"use strict";\n/, "")
          , h = m(p);
        "54c6b762ad3618c9ebfd4b439c8d4bda" !== h && ($.getScript("https://tajs.qq.com/stats?sId=54802481"),
        location.href = "https://wx.qq.com/?t=v2/fake")
    } catch (M) {}
    angular.bootstrap(document, ["webwxApp"])

https://wx.qq.com/?t=v2/fake

See Also

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions