Skip to content

fix: #156 #184 post text parse err#196

Merged
Leizhenpeng merged 1 commit into
ConnectAI-E:masterfrom
LufeiCheng:fix_post_err
May 1, 2023
Merged

fix: #156 #184 post text parse err#196
Leizhenpeng merged 1 commit into
ConnectAI-E:masterfrom
LufeiCheng:fix_post_err

Conversation

@LufeiCheng

Copy link
Copy Markdown
Contributor

描述

修复飞书消息富文本报错问题

飞书文档链接:https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/events/message_content
富文本json格式:

{
    "title":"我是一个标题",
    "content":[
        [
            {
                "tag":"text",
                "text":"第一行 :",
                "style": ["bold", "underline"]
            },
            {
                "tag":"a",
                "href":"http://www.feishu.cn",
                "text":"超链接",
                "style": ["bold", "italic"]
            },
            {
                "tag":"at",
                "user_id":"@_user_1",
                "user_name":"",
                "style": []
            }
        ],
        [
            {
                "tag":"img",
                "image_key":"img_47354fbc-a159-40ed-86ab-2ad0f1acb42g"
            }
        ],
        [
            {
                "tag":"text",
                "text":"第二行:",
                "style": ["bold", "underline"]
            },
            {
                "tag":"text",
                "text":"文本测试",
                "style": []
            }
        ],
        [
            {
                "tag":"img",
                "image_key":"img_47354fbc-a159-40ed-86ab-2ad0f1acb42g"
            }
        ],
        [
            {
                "tag":"media",
                "file_key": "file_v2_0dcdd7d9-fib0-4432-a519-41d25aca542j",
                "image_key": "img_7ea74629-9191-4176-998c-2e603c9c5e8g"
            }
        ],
        [
            {
                "tag": "emotion",
                "emoji_type": "SMILE"
            }
        ]
    ]
}

相关问题

@LufeiCheng

Copy link
Copy Markdown
Contributor Author

滴滴

@Leizhenpeng Leizhenpeng merged commit 3720ac2 into ConnectAI-E:master May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants