mirror of
https://github.com/r-ca/kidshift-skills.git
synced 2024-10-26 01:24:03 +00:00
add log
This commit is contained in:
parent
f680d29340
commit
729889a765
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user