mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-16 07:20:59 +00:00
feat: account_id 设置逻辑
This commit is contained in:
@@ -125,6 +125,10 @@ class QQBotManager:
|
|||||||
else:
|
else:
|
||||||
self.adapter = context.get_qqbot_manager().adapter
|
self.adapter = context.get_qqbot_manager().adapter
|
||||||
self.bot_account_id = context.get_qqbot_manager().bot_account_id
|
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)
|
context.set_qqbot_manager(self)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user