Compare commits

...

2 Commits

Author SHA1 Message Date
404d45842a chore(release): publish
- @egg/lark-msg-tool@1.20.0
2024-12-17 11:33:46 +00:00
951bb88a54 feat(lark-msg-tool): 添加 isLarkBody 属性以标识 Lark 消息体类型
All checks were successful
/ release (push) Successful in 30s
2024-12-17 11:33:18 +00:00
4 changed files with 13 additions and 2 deletions

2
package-lock.json generated
View File

@ -12373,7 +12373,7 @@
},
"packages/lark-msg-tool": {
"name": "@egg/lark-msg-tool",
"version": "1.19.0",
"version": "1.20.0",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.6.0",

View File

@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [1.20.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.19.0...@egg/lark-msg-tool@1.20.0) (2024-12-17)
### Features
- **lark-msg-tool:** 添加 isLarkBody 属性以标识 Lark 消息体类型 ([951bb88](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/951bb88a54ee310437d07cb4a0b27f7519090be7))
# [1.19.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.18.0...@egg/lark-msg-tool@1.19.0) (2024-12-04)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/lark-msg-tool",
"version": "1.19.0",
"version": "1.20.0",
"description": "Lark Msg Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

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