diff --git a/routes/bot/eventMsg.ts b/routes/bot/eventMsg.ts index 0b2bd32..42634c2 100644 --- a/routes/bot/eventMsg.ts +++ b/routes/bot/eventMsg.ts @@ -49,20 +49,6 @@ const filterIllegalMsg = async (ctx: Context): Promise => { return true } -/** - * 发送ID消息 - * @param {Context} ctx - 上下文数据 - */ -const manageIdMsg = ({ - larkBody: { chatId }, - larkCard, - larkService, -}: Context) => - larkService.message.sendCard2Chat( - chatId, - larkCard.genTempCard("chatId", { chat_id: chatId }) - ) - /** * 处理意图消息 * @param {Context} ctx - 上下文数据 @@ -99,7 +85,9 @@ const manageIntent = async (ctx: Context) => { if (intentAgent.isBaseIntent(intentRes)) { switch (intentRes.intent) { case 1: - await manageIdMsg(ctx) + await message.updateOrReply( + larkCard.genTempCard("chatId", { chat_id: chatId }) as string + ) break case 2: await attachService.ciMonitor(chatId)