protected function getResult($options, $method)
    {
        $this->config['method'] = $method;
        $this->config['biz_content'] = json_encode($options);
        $this->config['sign'] = $this->getSign();
        $method = str_replace('.', '_', $method) . '_response';
        $data = json_decode($this->post($this->gateway, $this->config), true);
        if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') {
            throw new GatewayException(
                "\nResultError" .
                (empty($data[$method]['code']) ? '' : "\n{$data[$method]['msg']}[{$data[$method]['code']}]") .
                (empty($data[$method]['sub_code']) ? '' : "\n{$data[$method]['sub_msg']}[{$data[$method]['sub_code']}]\n"),
                $data[$method]['code'],
                $data
            );
        }
        return $this->verify($data[$method], $data['sign'], true);
    }
protected function getResult($options, $method)
    {
        $this->config['method'] = $method;
        $this->config['biz_content'] = json_encode($options);
        $this->config['sign'] = $this->getSign();
        $method = str_replace('.', '_', $method) . '_response';
        $data = json_decode($this->post($this->gateway, $this->config), true);
        if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') {
            throw new GatewayException(
                "\nResultError" .
                (empty($data[$method]['code']) ? '' : "\n{$data[$method]['msg']}[{$data[$method]['code']}]") .
                (empty($data[$method]['sub_code']) ? '' : "\n{$data[$method]['sub_msg']}[{$data[$method]['sub_code']}]\n"),
                $data[$method]['code'],
                $data
            );
        }
        return $this->verify($data[$method], $data['sign'], true);
    }
protected function getResult ( $ options , $ method ) { $ this -> config [ 'method' ] = $ method ; $ this -> config [ 'biz_content' ] = json_encode ( $ options ) ; $ this -> config [ 'sign' ] = $ this -> getSign ( ) ; $ method = str_replace ( '.' , '_' , $ method ) . '_response' ; $ data = json_decode ( $ this -> post ( $ this -> gateway , $ this -> config ) , true ) ; if ( ! isset ( $ data [ $ method ] [ 'code' ] ) || $ data [ $ method ] [ 'code' ] !== '10000' ) { throw new GatewayException ( "\nResultError" . ( empty ( $ data [ $ method ] [ 'code' ] ) ? '' : "\n{$data[$method]['msg']}[{$data[$method]['code']}]" ) . ( empty ( $ data [ $ method ] [ 'sub_code' ] ) ? '' : "\n{$data[$method]['sub_msg']}[{$data[$method]['sub_code']}]\n" ) , $ data [ $ method ] [ 'code' ] , $ data ) ; } return $ this -> verify ( $ data [ $ method ] , $ data [ 'sign' ] , true ) ; }
获取验证访问数据
@param array $options
@param string $method
@return array|bool
@throws GatewayException
获取验证访问数据