轮播布局不会在Botframework中呈现。

时间:2016-08-15 10:24:17

标签: botframework

我正在使用超过5张英雄卡创建一张带有轮播布局的卡片,但它不会在Skype上呈现。当我尝试使用5张卡片时,旋转木马卡片呈现得非常好。

轮播布局中卡的数量是否有限制?

此外,我在回复中添加了一个文字,但它没有显示在旋转木马的顶部。使用轮播卡呈现文本时是否存在问题?

这是卡片的JSON代表:

{
  "type": "message",
  "attachmentLayout": "carousel",
  "text": "test carousel card",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "https://catcafemelbourne.com/wp-content/uploads/IMG_4535.jpg"
          }
        ],
        "buttons": []
      }
    },
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "http://www.wildcatconservation.org/wp-content/uploads/2013/03/2016-sand-cat-group.jpg"
          }
        ],
        "buttons": []
      }
    },
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "https://aos.iacpublishinglabs.com/question/aq/700px-394px/cats-noses-wet_756a0c5cb206e0c3.jpg?domain=cx.aos.ask.com"
          }
        ],
        "buttons": []
      }
    },
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "http://www.staustell.cats.org.uk/uploads/images/homepage_banner/BranchBannerPlaceholder.jpg"
          }
        ],
        "buttons": []
      }
    },
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "http://www.aspca.org/sites/default/files/cat-care_urine-marking_main-image.jpg"
          }
        ],
        "buttons": []
      }
    },
    {
      "contentType": "application/vnd.microsoft.card.hero",
      "content": {
        "images": [
          {
            "url": "http://www.rd.com/wp-content/uploads/sites/2/2016/02/01-13-things-you-didnt-know-about-cats-earthquakes.jpg"
          }
        ]
      }
    }
  ],
  "replyToId": "628713ea564044c8a27edc689750515f"
}

1 个答案:

答案 0 :(得分:4)

Skype目前将轮播卡的数量限制为5个。