diff --git a/astrbot/core/platform/sources/gewechat/client.py b/astrbot/core/platform/sources/gewechat/client.py index 0256afcee..59b4cc195 100644 --- a/astrbot/core/platform/sources/gewechat/client.py +++ b/astrbot/core/platform/sources/gewechat/client.py @@ -85,6 +85,8 @@ class SimpleGewechatClient: self.staged_files = {} """存储了允许外部访问的文件列表。auth_token: file_path。通过 register_file 方法注册。""" + self.lock = asyncio.Lock() + async def get_token_id(self): """获取 Gewechat Token。""" async with aiohttp.ClientSession() as session: