1
我有一个传送带,但当在Skype中单击CardAction按钮时,它不会打开URL。它在Emulator中工作。是否有一个原因?BotFramework Carousel CardAction Button does not OpenUrl
foreach(var botAmazonItem in botAmazonItems)
{
List<CardImage> cardImages = new List<CardImage>();
cardImages.Add(new CardImage(url: $"{botAmazonItem.imageUrl}"));
List<CardAction> cardButtons = new List<CardAction>();
CardAction plButton = new CardAction()
{
Value = botAmazonItem.detailsPageUrl,
Type = ActionTypes.OpenUrl,
Title = botAmazonItem.title
};
cardButtons.Add(plButton);
HeroCard plCard = new HeroCard()
{
Title = $"{botAmazonItem.title}",
Subtitle = $"{botAmazonItem.formattedPrice}",
Images = cardImages,
Buttons = cardButtons
};
Attachment plAttachment = plCard.ToAttachment();
replyToConversation.Attachments.Add(plAttachment);
}
哦,伙计!我刚刚修复了亚马逊图片的确切问题,我可以发誓我已经证实detailsPageUrl确实是https,但是第二次看起来并非如此。这做到了。对于那个很抱歉! –