fix(feishu): read message_type instead of msg_type (SDK field name mismatch)
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 <noreply@anthropic.com>
This commit is contained in:
parent
eb2d73bb7e
commit
6291d6591e
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue