diff --git a/src/index.js b/src/index.js index 80bad4a..819bfc7 100644 --- a/src/index.js +++ b/src/index.js @@ -77,8 +77,17 @@ async function handleFeishuEvent(req, res) { } if (eventType === 'card.action.trigger') { - await handleCardInteraction(decryptedEvent); - res.status(200).json({}); + // 立即响应(3 秒内),后续处理异步进行 + res.status(200).json({ + toast: { + type: 'success', + content: '收到请求' + } + }); + // 异步处理,不阻塞响应 + handleCardInteraction(decryptedEvent).catch(err => { + log('卡片交互处理错误:', err.message); + }); return; }