Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 谷歌助手基本卡片图像可点击,并在浏览器中打开URL_Node.js_Google Cloud Platform_Dialogflow Es - Fatal编程技术网

Node.js 谷歌助手基本卡片图像可点击,并在浏览器中打开URL

Node.js 谷歌助手基本卡片图像可点击,并在浏览器中打开URL,node.js,google-cloud-platform,dialogflow-es,Node.js,Google Cloud Platform,Dialogflow Es,我在Dialogflow v2中有一个代理,google版本^2.6.0上的操作。我创建了一张基本卡,当我在智能手机上测试时,我注意到图像是可点击的,并打开浏览器,将其重定向到。 我的手机是HUAWEY Y7 2018,Android版本8,基本卡组件是通过Google Cloud online editor中Node.js中的代码创建的。 代码如下: const {Table, Button, Image, BasicCard} = require('actions-on-google');

我在Dialogflow v2中有一个代理,google版本^2.6.0上的操作。我创建了一张基本卡,当我在智能手机上测试时,我注意到图像是可点击的,并打开浏览器,将其重定向到。 我的手机是HUAWEY Y7 2018,Android版本8,基本卡组件是通过Google Cloud online editor中Node.js中的代码创建的。 代码如下:

const {Table, Button, Image, BasicCard} = require('actions-on-google');

function testImmagine(agent){
    let conv=agent.conv();
    if (!conv.surface.capabilities.has('actions.capability.SCREEN_OUTPUT')) {
  conv.ask('Sorry, try this on a screen device or select the ' +
    'phone surface in the simulator.');
    return;
    }

    conv.ask('This is a basic card example.');
   conv.ask(new BasicCard({
    text: `testo testo`, 
    subtitle: 'This is a subtitle',
    title: 'Title: this is a title',
    buttons: new Button({
      title: 'This is a button',
      url: 'https://assistant.google.com/',
    }),
    image: new Image({
      url: 'https://storage.googleapis.com/actionsresources/logo_assistant_2x_64dp.png',
      alt: 'Image alternate text',
    }),
    display: 'CROPPED',
  }));
  conv.ask('Which response would you like to see next?');
//});

    agent.add(conv);
}


有没有办法防止图像被点击?我也更改了谷歌的actions-on-google版本,但它不起作用。

您在测试中尝试过使用其他智能手机型号吗?