Compare commits
2 Commits
@egg/net-t
...
@egg/net-t
Author | SHA1 | Date | |
---|---|---|---|
6255af3619 | |||
e57d007f9c |
2
package-lock.json
generated
2
package-lock.json
generated
@ -12394,7 +12394,7 @@
|
||||
},
|
||||
"packages/net-tool": {
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.18.0",
|
||||
"version": "1.19.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.19.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.18.0...@egg/net-tool@1.19.0) (2024-11-29)
|
||||
|
||||
### Features
|
||||
|
||||
- **lark-msg-tool:** 更新消息发送方法以支持返回消息ID ([e57d007](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/e57d007f9c96edd69410b17de6405bc72b8b2e86))
|
||||
|
||||
# [1.18.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.17.0...@egg/net-tool@1.18.0) (2024-11-29)
|
||||
|
||||
### Features
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.18.0",
|
||||
"version": "1.19.0",
|
||||
"description": "Net Tools for Egg projects",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
@ -116,7 +116,10 @@ class LarkMessageService extends LarkBaseService {
|
||||
if (msgType === "text" && !content.includes('"text"')) {
|
||||
content = JSON.stringify({ text: content })
|
||||
}
|
||||
return this.post<Lark.BaseRes>(path, { msg_type: msgType, content })
|
||||
return this.post<Lark.BaseRes<{ message_id: string }>>(path, {
|
||||
msg_type: msgType,
|
||||
content,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user