dongyuwei / tiny-wechat-robot

A tiny wechat robot 极简微信机器人

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

跑不起来

energygreek opened this issue · comments

hst:tiny-wechat-robot $npm run wechat

> tiny-wechat-robot@1.0.0 wechat /home/jimery/github/tiny-wechat-robot
> phantomjs ./src/phantomjs_wechat.js

request:  https://wx.qq.com/
request:  https://js.aq.qq.com/js/aq_common.js
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/css/c8dda94a1c135ba17e5706ebc4aab1bf.css
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/vendor/vendor_216b004.js
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/js/index_c7d281c.js
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/img/2zrdI1g.jpg
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/img/2z6meE1.gif
request:  https://res.wx.qq.com/a/wx_fed/webwx/res/static/img/2KriyDK.png
### wechat index js hijacked ###
ERROR: TypeError: undefined is not a function (evaluating 'e.module("ngDialog", [])')
TRACE:
 -> http://127.0.0.1:8000/hijacked_wechat_index.js?v=1589604101831: 6479
 -> http://127.0.0.1:8000/hijacked_wechat_index.js?v=1589604101831: 6476
 -> http://127.0.0.1:8000/hijacked_wechat_index.js?v=1589604101831: 6477
 -> https://res.wx.qq.com/a/wx_fed/webwx/res/static/vendor/vendor_216b004.js: 1 (in function "t")
 -> http://127.0.0.1:8000/hijacked_wechat_index.js?v=1589604101831: 107
 -> https://res.wx.qq.com/a/wx_fed/webwx/res/static/vendor/vendor_216b004.js: 1 (in function "t")
 -> http://127.0.0.1:8000/hijacked_wechat_index.js?v=1589604101831: 82
 -> https://res.wx.qq.com/a/wx_fed/webwx/res/static/vendor/vendor_216b004.js: 1 (in function "t")
 -> https://res.wx.qq.com/a/wx_fed/webwx/res/static/vendor/vendor_216b004.js: 1 (in function "webpackJsonp")

  phantomjs://code/phantomjs_wechat.js:32 in onError
Status: success

request 是我加的日志
环境:
Linux arch, Node v14.2.0

刚才验证了一下,现在确实有这个问题。等我有空分析一下吧,应该是微信升级了 web 版。

@energygreek 问题解决了,又可以正常工作了。登录后给自己发个ping试试,应该会自动收到一个 pong应答。代码做了一些重构,微信的 web 页面有 ECMA6 的代码,会导致phantomjs 报错。