未来鸟官网代码文章演示

首页 方案 正文
文章详情

这里是一段代码

[8] ErrorException in Weixin.php line 224
未定义数组索引: head_img
        $authorizerAppId = $authInfo['authorizer_appid']; //授权方appid
        //获取授权方的帐号基本信息
        $authorizerInfoUrl = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?component_access_token=" . $this->get_component_access_token();
        $data = '{"component_appid":"' . $this->appid . '","authorizer_appid":"' . $authorizerAppId . '"}';
        $appInfo = json_decode($this->https_post($authorizerInfoUrl, $data), true);
        $data = [
            'uid' => Session::get('uid'),
            'nick_name' => $appInfo['authorizer_info']['nick_name'],
            'alias' => isset($appInfo['authorizer_info']['alias']) ? $appInfo['authorizer_info']['alias'] : '',
            'head_img' => $appInfo['authorizer_info']['head_img'],
            'verify_type_info' => $appInfo['authorizer_info']['verify_type_info']['id'],
            'is_show' => 1,
            'user_name' => $appInfo['authorizer_info']['user_name'],
            'qrcode_url' => $appInfo['authorizer_info']['qrcode_url'],
            'business_info' => json_encode($appInfo['authorizer_info']['business_info']),
            'idc' => $appInfo['authorizer_info']['idc'],
            'principal_name' => $appInfo['authorizer_info']['principal_name'],
            'signature' => $appInfo['authorizer_info']['signature'],预览更改 (在新窗口中打开)

 

微信扫一扫

支付宝扫一扫

来源:11

版权:所有文章为演示数据,版权归原作者所有,仅提供演示效果! 转载请注明出处:https://weilainiao.com/827.html

上一篇: 解决方案测试
下一篇:

已经没有下一篇了!

相关推荐
未来鸟官网代码文章演示
这里是一段代码 (更多…)
头像
方案 2022-10-25
854
解决方案
解决方案测试
解决方案测试解决方案测试解决方案测试解决方案测试解决方案测试解决方案测试解决方案测试解决方案测试解决方案测试
头像
方案 2022-10-22
950 999
发表评论
暂无评论

还没有评论呢,快来抢沙发~

点击联系客服

在线时间:09:00-16:00

客服电话

13389604608

客服邮箱

weilainiao@qq.com

扫描二维码

关注微信公众号

扫描二维码

手机访问本站