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

This commit is contained in:
RockChinQ
2024-03-14 16:00:22 +08:00
parent be06150990
commit ed3c0d9014
8 changed files with 256 additions and 116 deletions

View File

@@ -43,5 +43,9 @@ class JSONConfigFile(file_model.ConfigFile):
return cfg
async def save(self, cfg: dict):
with open(self.config_file_name, 'w', encoding='utf-8') as f:
json.dump(cfg, f, indent=4, ensure_ascii=False)
def save_sync(self, cfg: dict):
with open(self.config_file_name, 'w', encoding='utf-8') as f:
json.dump(cfg, f, indent=4, ensure_ascii=False)