From 951bb88a54ee310437d07cb4a0b27f7519090be7 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Tue, 17 Dec 2024 11:33:18 +0000 Subject: [PATCH] =?UTF-8?q?feat(lark-msg-tool):=20=E6=B7=BB=E5=8A=A0=20isL?= =?UTF-8?q?arkBody=20=E5=B1=9E=E6=80=A7=E4=BB=A5=E6=A0=87=E8=AF=86=20Lark?= =?UTF-8?q?=20=E6=B6=88=E6=81=AF=E4=BD=93=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lark-msg-tool/src/larkBody/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/lark-msg-tool/src/larkBody/index.ts b/packages/lark-msg-tool/src/larkBody/index.ts index b1ce456..f7bb557 100644 --- a/packages/lark-msg-tool/src/larkBody/index.ts +++ b/packages/lark-msg-tool/src/larkBody/index.ts @@ -2,6 +2,10 @@ import { LarkAction, LarkEvent } from "../types" class LarkBody { protected body: LarkEvent.Data | LarkAction.Data + /** + * 是否为Lark消息体 + */ + public isLarkBody: boolean = true /** * 是否为事件消息 */ @@ -117,6 +121,7 @@ class LarkBody { this.chatId = this.getChatId(body) this.messageId = this.getMessageId(body) + this.isLarkBody = this.isEvent || this.isAction } /**