src/Leevel/Protocol/Thrift/Service/ThriftHandler.php
protected function normalizeRequest(Request $request): HttpRequest
    {
        if (!$request->call) {
            throw new InvalidArgumentException('Rpc call is not set.');
        }

        $httpRequest = new HttpRequest();

        // pathInfo
        if (false !== strpos($request->call, '@')) {
            list($call, $method) = explode('@', $request->call);
            $httpRequest->setMethod($method);
        } else {
            $call = $request->call;
        }

        $httpRequest->setPathInfo($call);

        // var
        $data = $request->params ?: [];
        $data[self::METAS] = $request->metas ?: [];
        $this->setPreRequestMatched($httpRequest, $data);

        return $httpRequest;
    }
protected function normalizeRequest(Request $request): HttpRequest
    {
        if (!$request->call) {
            throw new InvalidArgumentException('Rpc call is not set.');
        }

        $httpRequest = new HttpRequest();

        // pathInfo
        if (false !== strpos($request->call, '@')) {
            list($call, $method) = explode('@', $request->call);
            $httpRequest->setMethod($method);
        } else {
            $call = $request->call;
        }

        $httpRequest->setPathInfo($call);

        // var
        $data = $request->params ?: [];
        $data[self::METAS] = $request->metas ?: [];
        $this->setPreRequestMatched($httpRequest, $data);

        return $httpRequest;
    }
格式化 Thrift RPC 请求到 QueryPHP 请求

@param \Leevel\Protocol\Thrift\Service\Request $request

@return \Leevel\Http\Request