File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ $app->configure('wechat');
6969
7070> 注意:
7171
72- > 1 . Laravel 5 默认启用了 CSRF 中间件,因为微信的消息是 POST 过来,所以会触发 CRSF 检查导致无法正确响应消息,所以请去除默认的 CRSF 中间件,改成路由中间件。可以参考我的写法:[ overtrue gist: Kernel .php] ( https://gist.github.com/overtrue/ff6cd3a4e869fbaf6c01#file-kernel-php-L31 )
73- > 5.1 里的 SCRF 已经带了可忽略部分url的功能,你可以参考:http://laravel.com/docs/master/routing#csrf-protection
72+ > 1 . Laravel 5 默认启用了 CSRF 中间件,因为微信的消息是 POST 过来,所以会触发 CRSF 检查导致无法正确响应消息,所以请去除默认的 CSRF 中间件,改成路由中间件。可以参考我的写法:[ overtrue gist: Kernel .php] ( https://gist.github.com/overtrue/ff6cd3a4e869fbaf6c01#file-kernel-php-L31 )
73+ > 5.1 里的 CSRF 已经带了可忽略部分url的功能,你可以参考:http://laravel.com/docs/master/routing#csrf-protection
7474
7575所有的Wechat对象都已经放到了容器中,直接从容器中取就好。
7676
You can’t perform that action at this time.
0 commit comments