mirror of
https://github.com/tars-node/tars2node.git
synced 2024-03-22 13:10:56 +08:00
修复:在 InvokeProperty 时缺少 Rpc 前缀
This commit is contained in:
parent
af3e96ef99
commit
bd7b68d71a
|
@ -330,7 +330,7 @@ string CodeGenerator::generateTSProxy(const NamespacePtr &nPtr, const InterfaceP
|
|||
str << TAB << "})" << endl << endl; // end of metadata
|
||||
|
||||
// generate function body
|
||||
str << TAB << oPtr->getId() << "(" << sParamsWithType << (sParamsWithType.empty() ? "" : ", ") << "options?: " << IDL_NAMESPACE_STR << ".InvokeProperty) {" << endl;
|
||||
str << TAB << oPtr->getId() << "(" << sParamsWithType << (sParamsWithType.empty() ? "" : ", ") << "options?: " << IDL_NAMESPACE_STR << "Rpc.InvokeProperty) {" << endl;
|
||||
INC_TAB;
|
||||
|
||||
string sFuncFullName = pPtr->getId() + "Proxy." + oPtr->getId();
|
||||
|
|
Loading…
Reference in New Issue
Block a user