我需要将我的卡呈现为选择列表,每当用户点击选择时,该选择的数据就会发送给我。 我的卡就是这样:
var card = {
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Choice 1"
}
],
"selectAction": {
"type": "Action.Submit",
"title": "Submit action",
"data": {
"info": "Data of choice 1"
}
}
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Choice 2"
}
],
"selectAction": {
"type": "Action.Submit",
"title": "Submit action",
"data": {
"info": "Data of choice 2"
}
}
}
]
}
在我更新App Store的最新版本之前,selectAction一直运行得很顺利。我一直点击,但什么也没得到。
请注意,此操作仍可在Android设备和PC上进行。
对这种情况有什么想法吗?或者请帮助我修复此错误。提前谢谢!
答案 0 :(得分:1)
在频道对话中发送的卡片也会发生这种情况吗?
答案 1 :(得分:0)
您的卡片json看起来不正确。有关团队中的自适应卡,请参阅https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/cards/cards-actions#adaptive-card-actions
上的文档http port 80
https port 443