Skip to content

Commit 10c3bc3

Browse files
committed
update document
1 parent 96a580d commit 10c3bc3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# tiny-wechat-robot
22
使用 code hijack 和 code injection ( [phantomjs_wechat.js](src/phantomjs_wechat.js) ) 来实现一个简单的微信机器人应用。
33

4-
## usage:
5-
1. make sure PhantomJS([ref](http://phantomjs.org/api/webpage/handler/on-resource-requested.html)) in your `PATH`
4+
## 用法:
5+
1. 确保 PhantomJS([ref](http://phantomjs.org/api/webpage/handler/on-resource-requested.html)) 在系统路径`PATH`
66
2. `npm run serve`
7-
3. `npm run wechat`
8-
4. 扫码登陆微信
7+
3. `npm run wechat` (新开一个 Terminal Tab执行这个命令)
8+
4. 根据命令行提示信息,扫二维码登陆微信
9+
5. 发一个 `ping` 测试信息给当前登录用户,应该会自动收到一个 `pong` 应答
910

1011
Tested with `node v7.7.3` and `PhantomJS V 2.1.1`: [phantomjs-2.1.1-macosx.zip ](https://npm.taobao.org/mirrors/phantomjs/phantomjs-2.1.1-macosx.zip) or [phantomjs-2.1.1-linux-x86_64.tar.bz2 ](https://npm.taobao.org/mirrors/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2)
1112

@@ -14,7 +15,7 @@ Tested with `node v7.7.3` and `PhantomJS V 2.1.1`: [phantomjs-2.1.1-macosx.zip ]
1415
1. 收到`ping`,回复`pong`
1516
2. 收到`pingping`,回复`pongpong`
1617
3. 收到`pingpingping`,回复`pongpongpong`
17-
4. 其他,不做特殊处理.
18+
4. 其他,不做特殊处理
1819

1920
## 设计思路
2021
1. 使用 phantomjs 访问微信 web 登录页面;

0 commit comments

Comments
 (0)