feat(lark-msg-tool): 添加 isLarkBody 属性以标识 Lark 消息体类型
All checks were successful
/ release (push) Successful in 30s

This commit is contained in:
zhaoyingbo 2024-12-17 11:33:18 +00:00
parent 3e6cf68869
commit 951bb88a54

View File

@ -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
}
/**