From 6291d6591e92a2ca868f783de7ae5bd9fe0ec139 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 9 Mar 2026 07:27:29 -0700 Subject: [PATCH] fix(feishu): read message_type instead of msg_type (SDK field name mismatch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Feishu @larksuiteoapi/node-sdk uses message_type, not msg_type (which is DingTalk). This caused all incoming messages to be treated as non-text, returning '我目前只能处理文字消息' for every message. Co-Authored-By: Claude Sonnet 4.6 --- .../src/infrastructure/feishu/feishu-router.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/services/agent-service/src/infrastructure/feishu/feishu-router.service.ts b/packages/services/agent-service/src/infrastructure/feishu/feishu-router.service.ts index 33cae26..7ad80b7 100644 --- a/packages/services/agent-service/src/infrastructure/feishu/feishu-router.service.ts +++ b/packages/services/agent-service/src/infrastructure/feishu/feishu-router.service.ts @@ -290,7 +290,7 @@ export class FeishuRouterService implements OnModuleInit, OnModuleDestroy { const messageId = message.message_id; const chatType = message.chat_type; // 'p2p' or 'group' const chatId = message.chat_id; - const msgType = message.msg_type; + const msgType = message.message_type ?? message.msg_type; // SDK uses message_type if (!openId || !messageId) return;