首页 > 解决方案 > 基本卡中的图像未正确显示

问题描述

我注意到从昨天开始,Google Assistant 上的基本卡片中的图像无法正确显示,似乎被“拉伸”了。我原来的 JSON 是:

                        "basicCard": {
                            "title": "Title",
                            "subtitle": "Welcome",
                            "formattedText": "",
                            "buttons": [],
                            "imageDisplayOptions": "WHITE",
                            "image": {
                                "url": "https:URL_IMG.jpg",
                                "accessibilityText": "TXT",
                                "height": 694,
                                "width": 800
                            }
                        }
                    }

我尝试将 imageDisplayOptions 设置为DEFAULT,CROPPEDWHITE, 并结合宽度和高度设置,也没有设置,但这些都不起作用。

我在 PHP 实现上使用 Dialogflow V2。在设备 Android、华为 Y7 2018 上进行测试。

标签: dialogflow-esactions-on-googledialogflow-es-fulfillment

解决方案


推荐阅读