Skip to content

Commit cf5e051

Browse files
committed
修改文档
1 parent 30eb35c commit cf5e051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
> 注意:
3333
34-
> 1. Laravel 5 默认启用了 CRSF 中间件,因为微信的消息是 POST 过来,所以会触发 CRSF 检查导致无法正确响应消息,所以请去除默认的 CRSF 中间件,改成路由中间件。[默认启用的代码位置](https://github.com/laravel/laravel/blob/master/app/Http/Kernel.php#L18)
34+
> 1. Laravel 5 默认启用了 CRSF 中间件,因为微信的消息是 POST 过来,所以会触发 CRSF 检查导致无法正确响应消息,所以请去除默认的 CRSF 中间件,改成路由中间件。可以参考我的写法:[overtrue gist:Kernel.php](https://gist.github.com/overtrue/ff6cd3a4e869fbaf6c01#file-kernel-php-L31)
3535
3636
所有的Wechat对象都已经放到了容器中,直接从容器中取就好。
3737

0 commit comments

Comments
 (0)