修复:在 InvokeProperty 时缺少 Rpc 前缀

This commit is contained in:
superzheng 2019-03-26 18:28:48 +08:00
parent af3e96ef99
commit bd7b68d71a

View File

@ -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();