fix: 修复Lark消息发送中的文本格式问题
All checks were successful
Egg CI/CD / build-image (push) Successful in 29s
Egg CI/CD / deploy (push) Successful in 22s

This commit is contained in:
zhaoyingbo 2024-06-20 02:28:29 +00:00
parent 04c6a91bcf
commit 087e80d037

View File

@ -18,7 +18,7 @@ const send =
content: string
) => {
const URL = `https://open.f.mioffice.cn/open-apis/im/v1/messages?receive_id_type=${receive_id_type}`;
if (msg_type === "text" && !content.includes("text:")) {
if (msg_type === "text" && !content.includes('"text"')) {
content = JSON.stringify({ text: content });
}
return larkNetTool.post(appName)<LarkServer.BaseRes>(URL, {