Hero Image 不会显示在 ConnectorCard 中
HeroImage wornt show in ConnectorCard
我正在尝试发送带有 Hero Image 标签的连接卡。
我遵循了 MessageCard Playground 中的示例
但即使完全复制示例,它们也不会显示。没有错误,卡片显示正常,除了主图。
我要发送的json
:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Task 42",
"title": "Task Done: \"Building the Super Computer\"",
"sections": [
{
"activityTitle": "Mice of Earth",
"activitySubtitle": "9/13/2016, 11:46am",
"activityImage": "http://static.website.com/images/smallimage.jpg",
"facts": [
{
"name": "Team:",
"value": "Team-Poster"
},
{
"name": "Task #:",
"value": "42"
}
],
"text": "Build supercomputer to answer the ultimate question",
"heroImage": {
"image": "http://static.website.com/images/party-1644648_1920.jpg",
"title": "This is the image's alternate text"
},
}
]
}
Outlook Actionable Messages documentation 也讨论了主图,但缺少示例。
是的,目前 Microsoft 团队不支持连接器卡的英雄图像。您可以按照此处的文档进行操作:https://msdn.microsoft.com/en-us/microsoft-teams/teams-bots-cards and https://msdn.microsoft.com/en-us/microsoft-teams/connectors,说明很清楚。
我正在尝试发送带有 Hero Image 标签的连接卡。
我遵循了 MessageCard Playground 中的示例 但即使完全复制示例,它们也不会显示。没有错误,卡片显示正常,除了主图。
我要发送的json
:
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Task 42",
"title": "Task Done: \"Building the Super Computer\"",
"sections": [
{
"activityTitle": "Mice of Earth",
"activitySubtitle": "9/13/2016, 11:46am",
"activityImage": "http://static.website.com/images/smallimage.jpg",
"facts": [
{
"name": "Team:",
"value": "Team-Poster"
},
{
"name": "Task #:",
"value": "42"
}
],
"text": "Build supercomputer to answer the ultimate question",
"heroImage": {
"image": "http://static.website.com/images/party-1644648_1920.jpg",
"title": "This is the image's alternate text"
},
}
]
}
Outlook Actionable Messages documentation 也讨论了主图,但缺少示例。
是的,目前 Microsoft 团队不支持连接器卡的英雄图像。您可以按照此处的文档进行操作:https://msdn.microsoft.com/en-us/microsoft-teams/teams-bots-cards and https://msdn.microsoft.com/en-us/microsoft-teams/connectors,说明很清楚。