tur80232007

tur80232007

这家伙有点懒,还没写个性签名!

  • 财富值30
  • 威望值0
  • 总积分30

个人信息

  • 赞了回复

    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,
        ],
    
  • 2017-01-10 已签到
    连续签到1天,获得了5个金钱
  • 回复了 的评论

    打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
    Internal Server Error

    The 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秒左右,啥情况

  • 回复了 的评论

    打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
    Internal Server Error

    The 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秒左右,啥情况

  • 回复了 的评论

    打开http://localhost/yii2admin-master/backend/web/index.php,有以下错误:
    Internal Server Error

    The 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 Error

    The 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文件。
    这一布不会配置,楼主能不能给说说

试用期 等级规则
30/50
资料完整度
10/100
用户活跃度
0/100

Ta的关注

1

Ta的粉丝

0

Ta的访客

1