【发布时间】:2018-03-06 15:40:02
【问题描述】:
我有一张简单的自适应卡片,在网络聊天应用中运行良好,这就是卡片
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Hello!",
"weight": "bolder",
"isSubtle": true
},
{
"type": "TextBlock",
"text": "What can I do for you?",
"wrap": true
}
]
}
]
}
]
}
],
"actions": [
{
"type": "Action.ShowCard",
"title": "Buy",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "What do you want to buy?",
"weight": "bolder"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Ticket",
"data": {
"action_button": "buy_ticket"
}
}
]
}
},
{
"type": "Action.ShowCard",
"title": "Check",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Nothing to check",
"weight": "bolder"
}
]
}
}
]
}
您可以通过在此链接http://adaptivecards.io/visualizer/index.html?hostApp=Skype 中粘贴代码来查看它。
您可以在此处看到网络聊天工作正常:
但Skype 甚至不呈现Action.Submit 按钮。
它应该可以工作,因为这种卡类型支持 Skype。
我也在 Android 上测试过,它也有同样的错误。
【问题讨论】:
标签: node.js botframework skype