NoahGameFrame icon indicating copy to clipboard operation
NoahGameFrame copied to clipboard

NFWSModule::AddReceiveCallBack 绑定的pb消息回调无法触发

Open littlefork opened this issue 5 years ago • 2 comments

bug

NFWSModule.cpp 中 NFWSModule::OnReceiveNetPack 缺少 msgID > 0 时触发回调函数的逻辑

建议

369行 else if (msgID == 0) 修改为 else

littlefork avatar Sep 18 '20 06:09 littlefork

确认bug。

因为 == 0 是text 消息,需要自己解包,因此无内置消息id。 而 > 0 是pb 的 binary消息。

ketoo avatar Sep 18 '20 21:09 ketoo

Fixed.

ketoo avatar Sep 19 '20 06:09 ketoo