chore: 添加调试日志

This commit is contained in:
sliverp
2026-02-05 20:55:10 +08:00
parent 611b4f4323
commit 0a6b0fe73a

View File

@@ -124,6 +124,7 @@ export const qqbotPlugin: ChannelPlugin<ResolvedQQBotAccount> = {
resolveAllowFrom: ({ cfg, accountId }: { cfg: OpenClawConfig; accountId?: string }) => {
const account = resolveQQBotAccount(cfg, accountId);
const allowFrom = account.config?.allowFrom ?? [];
console.log(`[qqbot] resolveAllowFrom: accountId=${accountId}, allowFrom=${JSON.stringify(allowFrom)}`);
return allowFrom.map((entry: string | number) => String(entry));
},
// 格式化 allowFrom 条目(移除 qqbot: 前缀,统一大写)