New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf 布尔值传递问题 #1126

Open
luvFriday opened this Issue Nov 28, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@luvFriday

luvFriday commented Nov 28, 2018

在 serverProtos.json 中配置发送给客户端的消息,如果是布尔值时:
如:
"optional uInt32 index": 1,
"optional bool unlock": 2,
"optional bool received": 3
客户端只能正确收到 index, unlock 和 received 都是 undefined。
是 pomelo 的 protobuf 不支持发送布尔值消息吗?还是我的配置问题?请各路大神指教!

@whtiehack

This comment has been minimized.

whtiehack commented Nov 28, 2018

没有 bool,用 uInt32 替代吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment