From b4871e837a87d70c099d4ede0cd53e18cb4f02c3 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 27 Sep 2024 03:01:35 +0000 Subject: [PATCH] =?UTF-8?q?fix(group-agent):=20=E4=BF=AE=E5=A4=8D=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 3 ++- bun.lockb | Bin 147382 -> 147382 bytes package.json | 2 +- routes/bot/actionMsg.ts | 1 + routes/bot/index.ts | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index e99de0e..30235aa 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ -view \ No newline at end of file +view +.git \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 580475624b52d1d24ffb2746ded0cafdc825ce9e..059c73f477777d7868c07aa3c0c8f99596031960 100755 GIT binary patch delta 178 zcmV;j08Rh4{|L7K2#_uyoHn550t;F1vaMAX@g`xxt>1k0hL)J}%E>C&;OU>>u}%gv zlT;Zrvxqa*fk4@_94!lGaT?>45W}ByF0Qr)8@n`$&r@F^S?v!{BI!+z5NQdNLF36E zNl{x4NN*Gfa#bAVEatZ+BXeIE@7}YWwT|2f0bVgKF*GhQmot(9WCJ%YFt?hL0V-S) gH!d+RZe?^WbZ>8LEio=PE-{x7?g2x$8Sep|P`@imbpQYW delta 184 zcmV;p07w6}{|L7K2#_uykgotq|J|Dem`}pF8v@{yCd$Zo$1gaTz?r3{t#y|nu}%gv z0S1#1EGv`17zne7Gu44WT*krQt1ACBABYaz90%jQSNxDbH0(cqwDxI7=;n)%4ff)y zx|giH?lOs|zmenF6}bFod5~Da!R{0C+GsD_vz@h$+z0{y00000005UWk^y7`HZC={ mnvwx3ToN`eH7{;ubS-pmZ)`0wE;cSTmk{m&L$?|40i96rQc}YJ diff --git a/package.json b/package.json index 7b73dbc..7e07cc4 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@egg/hooks": "^1.2.0", "@egg/lark-msg-tool": "^1.4.0", "@egg/logger": "^1.4.3", - "@egg/net-tool": "^1.6.5", + "@egg/net-tool": "^1.7.1", "@egg/path-tool": "^1.4.1", "@langchain/core": "^0.3.3", "@langchain/openai": "^0.3.2", diff --git a/routes/bot/actionMsg.ts b/routes/bot/actionMsg.ts index 925501f..cf5043a 100644 --- a/routes/bot/actionMsg.ts +++ b/routes/bot/actionMsg.ts @@ -34,4 +34,5 @@ export const manageActionMsg = async (ctx: Context.Data) => { const actionType = getActionType(ctx.body) if (actionType === "button") manageBtnClick(ctx) if (actionType === "select_static") manageBtnClick(ctx) + return ctx.genResp.json() } diff --git a/routes/bot/index.ts b/routes/bot/index.ts index 5e074ee..89be412 100644 --- a/routes/bot/index.ts +++ b/routes/bot/index.ts @@ -26,7 +26,7 @@ export const manageBotReq = async (ctx: Context.Data): Promise => { // 处理Event消息 if (getIsEventMsg(body)) manageEventMsg(ctx) // 处理Action消息 - if (getIsActionMsg(body)) manageActionMsg(ctx) + if (getIsActionMsg(body)) return await manageActionMsg(ctx) // 返回成功响应 return ctx.genResp.ok()