【发布时间】:2018-07-27 08:27:25
【问题描述】:
我最近创建了一个动作,并在网络模拟器和我的 Pixel 2 设备上对其进行了测试。它对我来说很好。但是在审核过程中,Google 的团队提到,在审核时他们发现错误说我的应用程序现在没有响应。请稍后再试。 (附截图)。社区中的人可以帮助我解决问题。
如果有帮助,下面是完整的代码。
'use strict';
// Import the Dialogflow module from the Actions on Google client library.
const {dialogflow} = require('actions-on-google');
// Import the firebase-functions package for deployment.
const functions = require('firebase-functions');
// Instantiate the Dialogflow client.
const app = dialogflow({debug: true});
// Handle the Dialogflow intent named 'favorite color'.
// The intent collects a parameter named 'color'.
app.intent('think number', (conv, {nextStep}) => {
conv.close('The result is 9.');
});
// Set the DialogflowApp object to handle the HTTPS POST request.
exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);
审核小组的回复截图:
【问题讨论】: