嗷呜happy

嗷呜happy

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

  • 财富值95
  • 威望值0
  • 总积分175

个人信息

  • 2019-09-18 已签到
    连续签到1天,获得了5个金钱
  • 回复了 的评论

    问题解决,环境配置的问题

    环境哪里的问题

  • 2018-12-25 已签到
    连续签到1天,获得了5个金钱
  • 赞了说说
    祝新浪 20 周年生日快乐! 💝 🎁 🎂
  • 2018-11-30 已签到
    连续签到1天,获得了5个金钱
  • 2018-11-23 已签到
    连续签到2天,获得了10个金钱
  • 回复了 的回答

    在动作中加上:

    Yii::$app->response->headers->add('Access-Control-Allow-Origin', '*');
    

    如果是 dev 环境,请修改

    if (YII_ENV_DEV) {
        // configuration adjustments for 'dev' environment
        $config['bootstrap'][] = 'debug';
        $config['modules']['debug'] = [
            'class' => 'yii\debug\Module',
            // uncomment the following to add your IP if you are not connecting from localhost.
            'allowedIPs' => ['*'], // 这里改为 *,表示允许任何 IP 请求
        ];
    }
    

    一样还是不行的

  • 回复了 的回答

    在动作中加上:

    Yii::$app->response->headers->add('Access-Control-Allow-Origin', '*');
    

    如果是 dev 环境,请修改

    if (YII_ENV_DEV) {
        // configuration adjustments for 'dev' environment
        $config['bootstrap'][] = 'debug';
        $config['modules']['debug'] = [
            'class' => 'yii\debug\Module',
            // uncomment the following to add your IP if you are not connecting from localhost.
            'allowedIPs' => ['*'], // 这里改为 *,表示允许任何 IP 请求
        ];
    }
    

    感谢,但是还是不行,返回空,
    var_dump(xx)就有东西,只要return 就为空 没有任何结果返回

  • 2018-11-22 已签到
    连续签到1天,获得了5个金钱
助理 等级规则
175/200
资料完整度
10/100
用户活跃度
0/100

Ta的关注

2

Ta的粉丝

3

Ta的访客

3