From 3a63630068114d2e931565d64ad9065cd329c29c Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Thu, 21 Dec 2023 18:51:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20account=5Fid=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/qqbot/manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/qqbot/manager.py b/pkg/qqbot/manager.py index 588d6621..b8ba8a9c 100644 --- a/pkg/qqbot/manager.py +++ b/pkg/qqbot/manager.py @@ -125,6 +125,10 @@ class QQBotManager: else: self.adapter = context.get_qqbot_manager().adapter self.bot_account_id = context.get_qqbot_manager().bot_account_id + + # 保存 account_id 到审计模块 + from ..utils.center import apigroup + apigroup.APIGroup._runtime_info['account_id'] = self.bot_account_id context.set_qqbot_manager(self)