Compare commits

...

2 Commits

Author SHA1 Message Date
4833445e63 chore(release): publish
- @egg/net-tool@1.26.2
2025-01-24 08:14:18 +00:00
9650cc318c fix(net-tool): 更新 replyCard 方法,返回回复的消息 ID
All checks were successful
/ release (push) Successful in 24s
2025-01-24 08:13:58 +00:00
4 changed files with 10 additions and 3 deletions

2
package-lock.json generated
View File

@ -12394,7 +12394,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.26.1",
"version": "1.26.2",
"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.26.2](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.26.1...@egg/net-tool@1.26.2) (2025-01-24)
### Bug Fixes
- **net-tool:** 更新 replyCard 方法,返回回复的消息 ID ([9650cc3](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/9650cc318c30f060a93a66cdb7b886381f1c40ad))
## [1.26.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.26.0...@egg/net-tool@1.26.1) (2025-01-24)
### Bug Fixes

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.26.1",
"version": "1.26.2",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -154,12 +154,13 @@ class LarkMessageService extends LarkBaseService {
return async (content: string) => {
if (repliedMessageId) {
await this.update(repliedMessageId, content)
return
return repliedMessageId
}
const res = await this.replyCard(messageId, content)
if ("data" in res) {
repliedMessageId = res.data.message_id
}
return repliedMessageId
}
}
}