签名完成后,我的“获取登录”意图的输出不会显示。使用 Google 登录
app.intent("redeem", (conv) => {
conv.ask(new SignIn("To redeem "));
})
app.intent("Get Signin", (conv, params, signin) => {
if (signin.status === 'OK') {
const payload = conv.user.profile.payload;
conv.ask(`I got your account details ${payload.name} , how would you like to redeem? `)
conv.ask(new Suggestions(['QR code'], ['code']));
}
else {
conv.close("Please sign in to redeem");
}
})