Skip to content

Commit

Permalink
Merge branch 'ac1982-zh-cn' into zh-cn
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Jul 5, 2016
2 parents a3c586d + 87088fe commit 05811eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ $server->setMessageHandler(function ($message) {

> :heart: 注意,默认没有验证是否为微信的请求,部署上线建议关掉 debug 模式。
某些情况,我们需要直接使用 `$message` 参数,那么怎么在 `setMessageHandler` 闭包外调用呢?

```php
$message = $server->getMessage();
```

## 请求消息的属性

当你接收到用户发来的消息时,可能会提取消息中的相关属性,那么请参考:
Expand Down

0 comments on commit 05811eb

Please sign in to comment.