protected function getUserInfo(AccessTokenInterface $token)
    {
        $response = $this->getHttpClient()->get('https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo', [
            'query' => array_filter([
                'access_token' => $token->getToken(),
                'code' => $this->getCode(),
            ]),
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getUserInfo(AccessTokenInterface $token)
    {
        $response = $this->getHttpClient()->get('https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo', [
            'query' => array_filter([
                'access_token' => $token->getToken(),
                'code' => $this->getCode(),
            ]),
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getUserInfo ( AccessTokenInterface $ token ) { $ response = $ this -> getHttpClient ( ) -> get ( 'https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo' , [ 'query' => array_filter ( [ 'access_token' => $ token -> getToken ( ) , 'code' => $ this -> getCode ( ) , ] ) , ] ) ; return json_decode ( $ response -> getBody ( ) , true ) ; }
Get user base info.

@param \Overtrue\Socialite\AccessTokenInterface $token

@return mixed
Get user base info .