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

使 mirai-cpp 的版本号与 mirai-api-http 的版本号相同 #60

Closed
cyanray opened this issue Jan 16, 2021 · 4 comments · Fixed by #61
Closed

使 mirai-cpp 的版本号与 mirai-api-http 的版本号相同 #60

cyanray opened this issue Jan 16, 2021 · 4 comments · Fixed by #61

Comments

@cyanray
Copy link
Owner

cyanray commented Jan 16, 2021

这样设计,就可以根据mirai-api-http的版本号选择mirai-cpp,保证兼容性。

@cyanray cyanray mentioned this issue Jan 16, 2021
@cyanray cyanray linked a pull request Jan 16, 2021 that will close this issue
@cyanray cyanray removed a link to a pull request Jan 16, 2021
@cyanray cyanray linked a pull request Jan 16, 2021 that will close this issue
@cyanray
Copy link
Owner Author

cyanray commented Jan 16, 2021

MiraiBot类提供了两个相关的函数:

  1. GetMiraiCppVersion
  2. GetMiraiApiHttpVersion

可以用这两个函数来获取 mirai-cpp 的版本号和 mirai-api-http 的版本号。如果两个版本号对不上,则可能存在兼容性问题(如果mirai-api-http有不兼容更新)。

@cyanray cyanray pinned this issue Jan 16, 2021
@cyanray
Copy link
Owner Author

cyanray commented Mar 27, 2021

master 分支对应 mirai-api-http 的最新版。

@crested-ezios
Copy link

好像在mirai-api-http的版本为1.11时这个设计不起作用?

@cyanray
Copy link
Owner Author

cyanray commented Dec 6, 2021

emmm 有的版本被跳过了,你可以用相近的版本(高版本一般兼容低版本,当然新功能用不了)

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

Successfully merging a pull request may close this issue.

2 participants