Compare commits
2 Commits
@egg/net-t
...
@egg/net-t
Author | SHA1 | Date | |
---|---|---|---|
745c39428a | |||
0c39125434 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -12394,7 +12394,7 @@
|
||||
},
|
||||
"packages/net-tool": {
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.24.0",
|
||||
"version": "1.25.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.25.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.24.0...@egg/net-tool@1.25.0) (2025-01-23)
|
||||
|
||||
### Features
|
||||
|
||||
- **net-tool:** 更新 sendText2Chat 方法,支持可选标题参数 ([0c39125](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/0c39125434d83fd1480c9391a4ab8057406a4f07))
|
||||
|
||||
# [1.24.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.23.0...@egg/net-tool@1.24.0) (2025-01-15)
|
||||
|
||||
### Features
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@egg/net-tool",
|
||||
"version": "1.24.0",
|
||||
"version": "1.25.0",
|
||||
"description": "Net Tools for Egg projects",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
|
@ -46,9 +46,11 @@ class LarkMessageService extends LarkBaseService {
|
||||
* 发送文本信息
|
||||
* @param receiveId 消息接收者的ID,ID类型应与查询参数receiveIdType 对应
|
||||
* @param content 消息内容
|
||||
* @param title 消息标题
|
||||
*/
|
||||
async sendText2Chat(receiveId: string, content: string) {
|
||||
return this.send("chat_id", receiveId, "text", content)
|
||||
async sendText2Chat(receiveId: string, content: string, title?: string) {
|
||||
const messageContent = title ? `<b>${title}</b>\n${content}` : content
|
||||
return this.send("chat_id", receiveId, "text", messageContent)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user