Skip to content
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

main.py的第90行有致命的错误.改了之后大大提高一下稳定性 #40

Open
bailuWX opened this issue Dec 10, 2021 · 0 comments

Comments

@bailuWX
Copy link

bailuWX commented Dec 10, 2021

self.lastOp = self.tenhouEncode({'opcode': None})
上面一行代码,应该改为
self.lastOp = {'opcode': None}
因为 这个变量在程序全程赋值的时候都是以解码之后的 msg字典 (Disct) 的格式来保存的
所以如果lastOp这个变量如果以 编码tenhouDecode后的String 的形式来初始化,在游戏运行的时候会出现致命性错误.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant