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

反向 ws 无法独立完成鉴权 #610

Closed
ieew opened this issue Aug 14, 2022 · 3 comments
Closed

反向 ws 无法独立完成鉴权 #610

ieew opened this issue Aug 14, 2022 · 3 comments
Milestone

Comments

@ieew
Copy link

ieew commented Aug 14, 2022

没有通过监权就无法在 ws 内使用 botListaboutverify 命令。mah统一回复 {"code":1,"msg":"Auth Key错误"}

已知:
发送的 verifyKey 没有错误

@ieew ieew changed the title 反向 ws 无法完成鉴权 反向 ws 无法独立完成鉴权 Aug 14, 2022
@ryoii
Copy link
Collaborator

ryoii commented Aug 23, 2022

反向 ws 好像需要在连接上的时候就完成鉴权,我考虑下这里是不是要保持原有逻辑

@ieew
Copy link
Author

ieew commented Aug 23, 2022

反向 ws 好像需要在连接上的时候就完成鉴权,我考虑下这里是不是要保持原有逻辑

我认为这种逻辑用于正向 ws 比较合适,不应该用于反向 ws。现有逻辑让反向 ws 完全没有存在的意义了。

@ryoii ryoii added this to the 2.7 milestone Oct 11, 2022
@BlueGlassBlock
Copy link
Contributor

反向 ws 好像需要在连接上的时候就完成鉴权,我考虑下这里是不是要保持原有逻辑

但是连接上就鉴权现在会导致 code 2,因为连接时 Bot 还没完成登录,导致 Bot.getInstanceOrNull(dto.qq) 返回 null

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

3 participants