Compare commits
2 Commits
@egg/lark-
...
@egg/lark-
Author | SHA1 | Date | |
---|---|---|---|
404d45842a | |||
951bb88a54 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user