团队自适应卡与jpg图像

时间:2020-06-07 07:56:14

标签: node.js image botframework microsoft-teams adaptive-cards

我向团队发送自适应卡。

当我使用png图像时,效果很好,当我使用jpg时,图像无法正确显示在团队中:

enter image description here

下面是代码(我使用https://adaptivecards.io/designer/创建了代码,并且图像确实正确显示在其中):

{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "type": "Image",
            "url": "https://he.wikipedia.org/wiki/PNG#/media/%D7%A7%D7%95%D7%91%D7%A5:PNG_transparency_demonstration_1.png"
        },
        {
            "type": "ActionSet",
            "actions": [
                {
                    "type": "Action.Submit",
                    "title": "someText",
                    "data": {
                        "text": "someText"
                    }
                }
            ]
        }
    ]
}

出了什么问题?

0 个答案:

没有答案