Compare commits

...

2 Commits

Author SHA1 Message Date
fc84a87004 chore(release): publish
- @egg/lark-msg-tool@1.11.1
2024-10-15 03:34:44 +00:00
cd4fbc1e03 chore(lark-msg): genCard改为注入全量数据
All checks were successful
/ release (push) Successful in 23s
2024-10-15 03:34:23 +00:00
4 changed files with 8 additions and 4 deletions

2
package-lock.json generated
View File

@ -12122,7 +12122,7 @@
},
"packages/lark-msg-tool": {
"name": "@egg/lark-msg-tool",
"version": "1.11.0",
"version": "1.11.1",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.4.4",

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.11.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.11.0...@egg/lark-msg-tool@1.11.1) (2024-10-15)
**Note:** Version bump only for package @egg/lark-msg-tool
# [1.11.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/lark-msg-tool@1.10.0...@egg/lark-msg-tool@1.11.0) (2024-10-15)
### Features

View File

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

View File

@ -101,9 +101,9 @@ class LarkCard<
return obj.map(traverseAndReplace)
} else if (_.isObject(obj)) {
// 给 value 字段注入公共变量
if ((obj as any).value && variables.commonValue) {
if ((obj as any).value) {
;(obj as any).value = {
...variables.commonValue,
...variables,
...((obj as any).value || {}),
}
}