protected function getUserDetail(AccessTokenInterface $token, $ticket)
    {
        $response = $this->getHttpClient()->post('https://qyapi.weixin.qq.com/cgi-bin/user/getuserdetail', [
            'query' => [
                'access_token' => $token->getToken(),
            ],
            'json' => [
                'user_ticket' => $ticket,
            ],
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getUserDetail(AccessTokenInterface $token, $ticket)
    {
        $response = $this->getHttpClient()->post('https://qyapi.weixin.qq.com/cgi-bin/user/getuserdetail', [
            'query' => [
                'access_token' => $token->getToken(),
            ],
            'json' => [
                'user_ticket' => $ticket,
            ],
        ]);

        return json_decode($response->getBody(), true);
    }
protected function getUserDetail ( AccessTokenInterface $ token , $ ticket ) { $ response = $ this -> getHttpClient ( ) -> post ( 'https://qyapi.weixin.qq.com/cgi-bin/user/getuserdetail' , [ 'query' => [ 'access_token' => $ token -> getToken ( ) , ] , 'json' => [ 'user_ticket' => $ ticket , ] , ] ) ; return json_decode ( $ response -> getBody ( ) , true ) ; }
Get user detail info.

@param \Overtrue\Socialite\AccessTokenInterface $token
@param $ticket

@return mixed
Get user detail info .