第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

是否有消息“抱歉,似乎出了點問題。” 當(dāng)我使用收據(jù)卡時在 Line 和 Messengers

是否有消息“抱歉,似乎出了點問題。” 當(dāng)我使用收據(jù)卡時在 Line 和 Messengers

C#
ibeautiful 2023-09-16 17:02:23
我創(chuàng)建了一個機(jī)器人并使用收據(jù)代碼來顯示我的摘要結(jié)果。在測試和部署到網(wǎng)絡(luò)聊天頻道時沒有出現(xiàn)問題,但是當(dāng)我將機(jī)器人添加到 Line 頻道和 Messenger 頻道時,我收到此消息“抱歉,看起來出了問題?!?我檢查了我的代碼,發(fā)現(xiàn)問題發(fā)生在我使用收據(jù)卡時。我的代碼(在ConfirmBookingStepAsync處發(fā)出)namespace Microsoft.BotBuilderSamples{    public class BookingDataDialog : ComponentDialog    {        private readonly IStatePropertyAccessor<BookingData> _userProfileAccessor;        public BookingDataDialog(UserState userState)            : base(nameof(BookingDataDialog))        {            _userProfileAccessor = userState.CreateProperty<BookingData>("BookingData");            // This array defines how the Waterfall will execute.            var waterfallSteps = new WaterfallStep[]            {                AllowBookingStepAsync,                SelectRoomStepAsync,                EmployeeIdStepAsync,                BookingDateStepAsync,                TimeFromStepAsync,                TimeToStepAsync,                ConfirmBookingStepAsync,                FinalStepAsync            };            // Add named dialogs to the DialogSet. These names are saved in the dialog state.            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), waterfallSteps));            AddDialog(new ChoicePrompt(nameof(ChoicePrompt)));            AddDialog(new TextPrompt(nameof(TextPrompt)));            AddDialog(new DateTimePrompt(nameof(DateTimePrompt)));            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));            // The initial child Dialog to run.            InitialDialogId = nameof(WaterfallDialog);        }
查看完整描述

1 回答

?
慕沐林林

TA貢獻(xiàn)2016條經(jīng)驗 獲得超9個贊

收據(jù)卡在 Messenger 中得到正式支持,但由于通道連接器錯誤而無法工作。我已在內(nèi)部提交了該錯誤的申請。同時,解決方法是使用 Facebook Messenger 的收據(jù)模板并將 Messenger 平臺模板作為渠道數(shù)據(jù)發(fā)送。

在 Node.js 中發(fā)送收據(jù)卡的簡單示例:

this.onMessage(async context => {

? await context.sendActivity({

? ? channelData: {

? ? ? 'attachment': {

? ? ? ? 'type': 'template',

? ? ? ? 'payload': {

? ? ? ? ? 'template_type': 'receipt',

? ? ? ? ? 'recipient_name': 'Stephane Crozatier',

? ? ? ? ? 'order_number': '12345678902',

? ? ? ? ? 'currency': 'USD',

? ? ? ? ? 'payment_method': 'Visa 2345',? ? ? ??

? ? ? ? ? 'order_url': 'http://petersapparel.parseapp.com/order?order_id=123456',

? ? ? ? ? 'timestamp': '1428444852',? ? ? ? ?

? ? ? ? ? 'address': {

? ? ? ? ? ? 'street_1': '1 Hacker Way',

? ? ? ? ? ? 'street_2': '',

? ? ? ? ? ? 'city': 'Menlo Park',

? ? ? ? ? ? 'postal_code': '94025',

? ? ? ? ? ? 'state': 'CA',

? ? ? ? ? ? 'country': 'US'

? ? ? ? ? },

? ? ? ? ? 'summary': {

? ? ? ? ? ? 'subtotal': 75.00,

? ? ? ? ? ? 'shipping_cost': 4.95,

? ? ? ? ? ? 'total_tax': 6.19,

? ? ? ? ? ? 'total_cost': 56.14

? ? ? ? ? },

? ? ? ? ? 'adjustments': [

? ? ? ? ? ? {

? ? ? ? ? ? ? 'name': 'New Customer Discount',

? ? ? ? ? ? ? 'amount': 20

? ? ? ? ? ? },

? ? ? ? ? ? {

? ? ? ? ? ? ? 'name': '$10 Off Coupon',

? ? ? ? ? ? ? 'amount': 10

? ? ? ? ? ? }

? ? ? ? ? ],

? ? ? ? ? 'elements': [

? ? ? ? ? ? {

? ? ? ? ? ? ? 'title': 'Classic White T-Shirt',

? ? ? ? ? ? ? 'subtitle': '100% Soft and Luxurious Cotton',

? ? ? ? ? ? ? 'quantity': 2,

? ? ? ? ? ? ? 'price': 50,

? ? ? ? ? ? ? 'currency': 'USD',

? ? ? ? ? ? ? 'image_url': 'http://petersapparel.parseapp.com/img/whiteshirt.png'

? ? ? ? ? ? },

? ? ? ? ? ? {

? ? ? ? ? ? ? 'title': 'Classic Gray T-Shirt',

? ? ? ? ? ? ? 'subtitle': '100% Soft and Luxurious Cotton',

? ? ? ? ? ? ? 'quantity': 1,

? ? ? ? ? ? ? 'price': 25,

? ? ? ? ? ? ? 'currency': 'USD',

? ? ? ? ? ? ? 'image_url': 'http://petersapparel.parseapp.com/img/grayshirt.png'

? ? ? ? ? ? }

? ? ? ? ? ]

? ? ? ? }

? ? ? }

? ? }

? });

});

要創(chuàng)建實現(xiàn) LINE 特定消息類型的消息,請將活動對象的通道數(shù)據(jù)屬性設(shè)置為指定 LINE 消息類型和操作類型的 JSON 對象。這將指導(dǎo)您了解如何使用 LINE 特定消息的 channelData 屬性。


希望這可以幫助。


查看完整回答
反對 回復(fù) 2023-09-16
  • 1 回答
  • 0 關(guān)注
  • 105 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號