tur80232007
- tur80232007 赞了回复
yii2无法接收到post数据的真正原因,因为其为了防止CSRF攻击,对POST的数据会进行验证,而微信的数据被拦截了,因此可设置$enableCsrfValidation=false,另外也可以在app/config/web.php的config中的request里面添加
$config = [
'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'M6P-95oYhvzBmTI8vbeJrLMJwfvdBZY0', 'enableCsrfValidation' => false, ],
yii2无法接收到post数据的真正原因,因为其为了防止CSRF攻击,对POST的数据会进行验证,而微信的数据被拦截了,因此可设置$enableCsrfValidation=false,另外也可以在app/config/web.php的config中的request里面添加
$config = [
'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'M6P-95oYhvzBmTI8vbeJrLMJwfvdBZY0', 'enableCsrfValidation' => false, ],
- tur80232007 2017-01-10 已签到连续签到1天,获得了5个金钱
- tur80232007 回复了 tur80232007 的评论
打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache 提示错误: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
主要是:4、参照 doc 目录下的Nginx和Apache配置文件,配置服务器,并设置hosts文件。
这一布不会配置,楼主能不能给说说数据刷新出来很慢,要3秒左右,啥情况
- tur80232007 回复了 tur80232007 的评论
打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache 提示错误: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
主要是:4、参照 doc 目录下的Nginx和Apache配置文件,配置服务器,并设置hosts文件。
这一布不会配置,楼主能不能给说说数据刷新出来很慢,要3秒左右,啥情况
- tur80232007 回复了 tur80232007 的评论
打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache 提示错误: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
主要是:4、参照 doc 目录下的Nginx和Apache配置文件,配置服务器,并设置hosts文件。
这一布不会配置,楼主能不能给说说楼主,被我折腾好了 ,终于可以用了
打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
查看apache 提示错误: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
主要是:4、参照 doc 目录下的Nginx和Apache配置文件,配置服务器,并设置hosts文件。
这一布不会配置,楼主能不能给说说