fix: 修复Lark消息发送中的文本格式问题
This commit is contained in:
parent
04c6a91bcf
commit
087e80d037
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user