WeChatFerry icon indicating copy to clipboard operation
WeChatFerry copied to clipboard

[🐛BUG] MsgTypes 的 proto 在 Node 环境下用 google-protobuf 反序列化失败

Open passby6someone opened this issue 1 year ago • 0 comments

描述这个 bug wcf.protoMsgTypes 在 Node 环境下用 google-protobuf 反序列化失败

message MsgTypes { map<int32, string> types = 1; }

改成

message MsgType {
    int32   code = 1;
    string  label = 2;
}

message MsgTypes { 
    repeated MsgType types = 1;
}

则可以解析成功

使用环境(请补全下列信息):

  • 操作系统:Windows 10
  • 操作系统版本:64
  • Node 版本: 22.4.1
  • WeChatFerry 版本: 39.2.4
  • 微信版本: 3.9.10.27

passby6someone avatar Jul 21 '24 10:07 passby6someone