This commit is contained in:
ろむねこ 2024-07-16 11:39:08 +09:00
parent f680d29340
commit 729889a765
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -53,6 +53,9 @@ const KidShiftAuthIntentHandler = {
const dialogState = Alexa.getDialogState(handlerInput.requestEnvelope); const dialogState = Alexa.getDialogState(handlerInput.requestEnvelope);
// dialogStateがCOMPLETEDでない場合は、処理を続行 // dialogStateがCOMPLETEDでない場合は、処理を続行
console.log("Dialog state is " + dialogState);
if (dialogState !== 'COMPLETED') { if (dialogState !== 'COMPLETED') {
return handlerInput.responseBuilder return handlerInput.responseBuilder
.addDelegateDirective() .addDelegateDirective()
@ -60,7 +63,9 @@ const KidShiftAuthIntentHandler = {
} }
// LOGIN_CODEスロットの値を取得 // LOGIN_CODEスロットの値を取得
const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, "loginCode"); const loginCode = Alexa.getSlotValue(handlerInput.requestEnvelope, 'loginCode');
console.log("Login code is " + loginCode);
if (!loginCode) { if (!loginCode) {
return handlerInput.responseBuilder return handlerInput.responseBuilder