From f55ca65c30b3d5e91c3d7cee9483afdf5354acbf Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Thu, 19 Dec 2024 10:52:39 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BE=A4=E8=81=8A?= =?UTF-8?q?=E5=8A=A9=E6=89=8B=E7=9A=84=E5=90=8D=E7=A7=B0=E5=92=8C=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8F=91=E9=80=81=E9=80=BB=E8=BE=91=E4=BB=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=B6=88=E6=81=AFID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constant/function.ts | 4 ++-- controller/groupAgent/report.ts | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/constant/function.ts b/constant/function.ts index 84c9287..6cf11bc 100644 --- a/constant/function.ts +++ b/constant/function.ts @@ -5,8 +5,8 @@ const functionMap = { xIcon: "🍳", }, groupAgent: { - xName: "Mi Chat ηΎ€θŠεŠ©ζ‰‹", - xAuthor: "AIεˆ›ζ–°εΊ”η”¨η»„", + xName: "ε°η…Žθ›‹ Group Agent", + xAuthor: "YIBinary ❀️ Yingbo", xIcon: "πŸ”₯", }, sheetDB: { diff --git a/controller/groupAgent/report.ts b/controller/groupAgent/report.ts index 707bea5..34c5398 100644 --- a/controller/groupAgent/report.ts +++ b/controller/groupAgent/report.ts @@ -191,8 +191,8 @@ const subscribe = async ( ) => { const cardGender = larkCard.child("groupAgent") const sendErrorMsg = () => - larkService.message.sendCard2Chat( - larkBody.chatId, + larkService.message.replyCard( + larkBody.messageId, cardGender.genErrorCard(RespMessage.registerFailed) ) try { @@ -218,8 +218,8 @@ const subscribe = async ( `chatId: ${larkBody.chatId} has been registered, timeScope: ${timeScope}` ) // ε‘ι€ε·²η»ζ³¨ε†ŒθΏ‡δΊ†ηš„ζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.hasRegisteredDaily @@ -245,8 +245,8 @@ const subscribe = async ( return } // ε‘ι€ζˆεŠŸζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.registerDailySuccess @@ -269,8 +269,8 @@ const unsubscribe = async ( ) => { const cardGender = larkCard.child("groupAgent") const sendErrorMsg = () => - larkService.message.sendCard2Chat( - larkBody.chatId, + larkService.message.replyCard( + larkBody.messageId, cardGender.genErrorCard(RespMessage.cancelFailed) ) try { @@ -297,8 +297,8 @@ const unsubscribe = async ( `chatId: ${larkBody.chatId} has not been registered, timeScope: ${timeScope}` ) // 发送ζœͺζ³¨ε†Œηš„ζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.cancelDailySuccess @@ -321,8 +321,8 @@ const unsubscribe = async ( } // ε‘ι€ζˆεŠŸζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.cancelDailySuccess