src/thinkextend/oauth/driver/Qq.php
public function getOpenId()
    {
        if (!empty($this->token['openid'])) {
            return $this->token['openid'];
        }

        if ($data['access_token']) {
            $data = $this->http($this->url('oauth2.0/me'), ['access_token' => $data['access_token']]);
            $data = json_decode(trim(substr($data, 9), " );\n"), true);
            if (isset($data['openid'])) {
                return $data['openid'];
            }

        }
        return null;
    }
public function getOpenId()
    {
        if (!empty($this->token['openid'])) {
            return $this->token['openid'];
        }

        if ($data['access_token']) {
            $data = $this->http($this->url('oauth2.0/me'), ['access_token' => $data['access_token']]);
            $data = json_decode(trim(substr($data, 9), " );\n"), true);
            if (isset($data['openid'])) {
                return $data['openid'];
            }

        }
        return null;
    }
public function getOpenId ( ) { if ( ! empty ( $ this -> token [ 'openid' ] ) ) { return $ this -> token [ 'openid' ] ; } if ( $ data [ 'access_token' ] ) { $ data = $ this -> http ( $ this -> url ( 'oauth2.0/me' ) , [ 'access_token' => $ data [ 'access_token' ] ] ) ; $ data = json_decode ( trim ( substr ( $ data , 9 ) , " );\n" ) , true ) ; if ( isset ( $ data [ 'openid' ] ) ) { return $ data [ 'openid' ] ; } } return null ; }
获取当前授权应用的openid
@return string
获取当前授权应用的openid