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

Feat: qq-botpy 适配器对 member 和 group 的 openid 进行静态缓存 #726

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

RockChinQ
Copy link
Owner

概述

使用 QQ 官方 API 作为 Q 群(需要测试资格)机器人时,群 id 和 成员 id 均为 字符串,而内部处理逻辑只支持 int,以前会在运行时维护一个映射表,按照顺位分配 int,重启后即丢失,无法进行访问权限等设置。
现在使用一个摘要算法,取字符串id最后10位,计算其int值,存入 data/metadata/adapter-qq-botpy.json 中,用户可自行修改,重启后仍有效。

@RockChinQ RockChinQ added the IM: qq-botpy QQ 官方 API 协议适配器相关 label Mar 14, 2024
@RockChinQ RockChinQ linked an issue Mar 14, 2024 that may be closed by this pull request
@RockChinQ RockChinQ merged commit 2028d85 into master Mar 14, 2024
@RockChinQ RockChinQ deleted the feat/qq-botpy-cache branch March 14, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IM: qq-botpy QQ 官方 API 协议适配器相关
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: 完善 qq-botpy 群号和用户号缓存转换机制
1 participant