Skip to content

Commit

Permalink
修改文档
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Feb 10, 2015
1 parent 2cba9af commit c2abb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $options = [
'encodingAESKey' => 'Your encoding AES Key' // optional
];

$wechat = new Wechat($options);
$wechat = Wechat::make($options);

$server = $wechat->on('message', function($message){
error_log("收到来自'{$message['FromUserName']}'的消息:" . $message['Content']);
Expand Down Expand Up @@ -289,7 +289,7 @@ use Overtrue\Wechat\Services\Message;

$options = array(...);

$wechat = new Wechat($options);
$wechat = Wechat::make($options);

$wechat->on('event', 'subscribe', function($event){
return Message::make('text')->content('您好!欢迎关注overtrue');
Expand Down

0 comments on commit c2abb3e

Please sign in to comment.