Actions on google 如何在GoogleAssistant应用程序中为订单或行项目设置图像

Actions on google 如何在GoogleAssistant应用程序中为订单或行项目设置图像,actions-on-google,Actions On Google,一,。我的订单是这样建立的: let order_id = uuid(); let cart = app.BuildCart().... let order = app.buildOrder(order_id) .setCart(cart) .addOtherItems([ app.buildLineItem('Subtotal', 'subtotal') .setType(

一,。我的订单是这样建立的:

let order_id = uuid();
let cart = app.BuildCart()....

let order = app.buildOrder(order_id)
            .setCart(cart)
            .addOtherItems([
                app.buildLineItem('Subtotal', 'subtotal')
                    .setType(app.Transactions.LineItemType.SUBTOTAL)
                    .setPrice(app.Transactions.PriceType.ESTIMATE, 'USD', 0),
                app.buildLineItem('Tax', 'tax')
                    .setType(app.Transactions.LineItemType.TAX)
                    .setPrice(app.Transactions.PriceType.ESTIMATE, 'USD', 0)
            ])
            .setTotalPrice(app.Transactions.PriceType.ACTUAL, 'USD', 0)
            .setImage('https://i.imgur.com/dLk6jwO.png', 'some text');
除此之外,一切都正常运行,
setImage
不会对屏幕造成任何影响

为什么我的图像不可见?我做错了什么

二,。我没有放弃,并尝试将图像设置为行项目:

let cart = app.buildCart().setMerchant('book_store_1', 'Book Store')
            .addLineItems([
                app.buildLineItem('memoirs_1', 'My Memoirs')
                    .setType(app.Transactions.LineItemType.REGULAR)
                    .setPrice(app.Transactions.PriceType.ACTUAL, 'USD', 0)
                    .setQuantity(1)
                    .setImage('https://i.imgur.com/dLk6jwO.png', 'blah blah blah')
                    .addSublines('Note from the author'),
                 ]);
但这没有帮助

有人能告诉我为什么我不能树立形象吗?谢谢

它看起来像一只虫子。 我会在内部报告,并随时向您通报。
谢谢你的报道

我认为cart对象和行项目都没有setImage方法。从他们的文档中我看不到这一点。我没有说购物车有这种方法。命令是这样的。行项目确实如此。谢谢你!期待修复:)