fix(feishu): use probed botName for mention checks (#36391)

This commit is contained in:
Liu Xiaopai
2026-03-06 00:55:04 +08:00
committed by GitHub
parent ba223c7766
commit b9f3f8d737
7 changed files with 87 additions and 18 deletions

View File

@@ -11,6 +11,7 @@ import {
export const wsClients = new Map<string, Lark.WSClient>();
export const httpServers = new Map<string, http.Server>();
export const botOpenIds = new Map<string, string>();
export const botNames = new Map<string, string>();
export const FEISHU_WEBHOOK_MAX_BODY_BYTES = 1024 * 1024;
export const FEISHU_WEBHOOK_BODY_TIMEOUT_MS = 30_000;
@@ -140,6 +141,7 @@ export function stopFeishuMonitorState(accountId?: string): void {
httpServers.delete(accountId);
}
botOpenIds.delete(accountId);
botNames.delete(accountId);
return;
}
@@ -149,4 +151,5 @@ export function stopFeishuMonitorState(accountId?: string): void {
}
httpServers.clear();
botOpenIds.clear();
botNames.clear();
}