Skip to content

Commit

Permalink
fix typo (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
remxcode authored Jul 7, 2022
1 parent 20f29ef commit c28dbbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class WeChatController extends Controller

## OAuth 中间件

使用中间件的情况下 `app/config/wechat.php` 中的 `oauth.callback` 就随便填写吧(因为用不着了 :smile:)。
使用中间件的情况下 `app/config/easywechat.php` 中的 `oauth.callback` 就随便填写吧(因为用不着了 :smile:)。

1.`app/Http/Kernel.php` 中添加路由中间件:

Expand Down Expand Up @@ -190,6 +190,8 @@ use Overtrue\LaravelWeChat\Traits\HandleOpenPlatformServerEvents;

class OpenPlatformController extends Controller
{
use HandleOpenPlatformServerEvents;

public function __invoke(Application $application): \Psr\Http\Message\ResponseInterface
{
$app = app('easywechat.open-platform');
Expand Down

0 comments on commit c28dbbf

Please sign in to comment.