From 1452f390309efeb1c3e24718d58741659a3a7bbb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 11 Aug 2023 14:05:05 +0800 Subject: [PATCH] 1 --- tools/pbtools/app.js | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/tools/pbtools/app.js b/tools/pbtools/app.js index aa76ead8..b65b4517 100644 --- a/tools/pbtools/app.js +++ b/tools/pbtools/app.js @@ -32,8 +32,33 @@ class PBTools { 'keepCase': true } ); - //this.cmMsgId = this.msgIdPb.lookup('CMMessageId_e'); - //this.smMsgId = this.msgIdPb.lookup('SMMessageId_e'); + this.csCmMsgId = this.csMsgIdPb.lookup('CMMessageId_e'); + this.csSmMsgId = this.csMsgIdPb.lookup('SMMessageId_e'); + } + { + this.ssProtoPb = await (new protobuf.Root()).load( + this.protoDir + 'ss_proto.proto', + { + 'keepCase': true + } + ); + } + { + this.ssMsgIdPb = await (new protobuf.Root()).load( + this.protoDir + 'ss_msgid.proto', + { + 'keepCase': true + } + ); + this.ssSSmMsgId = this.ssMsgIdPb.lookup('SSMMessageId_e'); + } + { + this.mtPb = await (new protobuf.Root()).load( + this.protoDir + 'mt.proto', + { + 'keepCase': true + } + ); } }