나혜원

ud

......@@ -103,10 +103,9 @@ function handleEvent(event) {
client.replyMessage(event.replyToken, showlist).then(resolve).catch(reject);
});
}
else if(0 < event.message.text.substring(0,2)*1 < 27){
else if(0 < event.message.text.substr(0,2)*1 && event.message.text.substr(0,2)*1 < 27){
var selectnum = (event.message.text.substr(0,2)*1);
......@@ -142,9 +141,10 @@ function handleEvent(event) {
console.log(videourl.url);
client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject);
});
})};
});
}
else
{
return new Promise(function(resolve, reject) {
//언어 감지 option
var detect_options = {
......@@ -208,4 +208,4 @@ function handleEvent(event) {
});
}
}
\ No newline at end of file
......