Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #281 from eidng8/patch-1
Browse files Browse the repository at this point in the history
这里应该是`$app`里面的`server`吧?
  • Loading branch information
overtrue authored Feb 25, 2021
2 parents 3c26a09 + ac5851c commit c95a32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion official-account/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $app->server->push(function ($message) {
某些情况,我们需要直接使用 `$message` 参数,那么怎么在 `push` 的闭包外调用呢?

```php
$message = $server->getMessage();
$message = $app->server->getMessage();
```
> {warning} 注意:`$message` 的类型取决于你的配置中 `response_type`
Expand Down

0 comments on commit c95a32c

Please sign in to comment.