文章详情
这里是一段代码
[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
还没有评论呢,快来抢沙发~