Compare commits

...

2 Commits

Author SHA1 Message Date
23e52245e5 chore(release): publish
- @egg/net-tool@1.24.0
2025-01-15 03:29:09 +00:00
c9a728895a feat(net-tool): 添加内容检查,确保消息内容不为空
All checks were successful
/ release (push) Successful in 29s
2025-01-15 03:28:43 +00:00
4 changed files with 11 additions and 2 deletions

2
package-lock.json generated
View File

@ -12394,7 +12394,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.23.0",
"version": "1.24.0",
"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.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
- **net-tool:** 添加内容检查,确保消息内容不为空 ([c9a7288](http://yingbo.im:3000/zhaoyingbo/egg_tools/commits/c9a728895a81d1d25d071c9e2d52b0d149e72fb7))
# [1.23.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.22.0...@egg/net-tool@1.23.0) (2025-01-14)
### Features

View File

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

View File

@ -15,6 +15,7 @@ class LarkMessageService extends LarkBaseService {
msgType: Lark.MsgType,
content: string | Record<string, any>
) {
if (!content) return { code: 1, message: "content is required" }
const path = `/im/v1/messages?receive_id_type=${receiveIdType}`
if (typeof content === "object") {
content = JSON.stringify(content)
@ -60,6 +61,7 @@ class LarkMessageService extends LarkBaseService {
content: string | Record<string, any>,
isText: boolean = false
) {
if (!content) return { code: 1, message: "content is required" }
const path = `/im/v1/messages/${messageId}`
if (typeof content === "object") {
content = JSON.stringify(content)
@ -117,6 +119,7 @@ class LarkMessageService extends LarkBaseService {
msgType: Lark.MsgType,
content: string | Record<string, any>
) {
if (!content) return { code: 1, message: "content is required" }
const path = `/im/v1/messages/${messageId}/reply`
if (typeof content === "object") {
content = JSON.stringify(content)