Experimenting with request/response struct names for non global RPCs
Publish PHP Package / docker (push) Successful in 7s Details

This commit is contained in:
Pavel Shevaev 2024-04-07 15:54:48 +03:00
parent 5dcffe2c80
commit 593b1670a0
1 changed files with 2 additions and 2 deletions

View File

@ -678,9 +678,9 @@ class mtgMetaInfoParser
{ return $this->_nextIf(self::T_End); }
);
$req = new mtgMetaPacket($code, $is_global ? "RPC_REQ_$name" : $name);
$req = new mtgMetaPacket($code, $is_global ? "RPC_REQ_$name" : "REQ_$name");
$req->setFields($req_fields);
$rsp = new mtgMetaPacket($code, $is_global ? "RPC_RSP_$name" : $name);
$rsp = new mtgMetaPacket($code, $is_global ? "RPC_RSP_$name" : "RSP_$name");
$rsp->setFields($rsp_fields);
$rpc = new mtgMetaRPC($is_global ? "RPC_$name" : $name, $code, $req, $rsp, $tokens);