나혜원

ud

......@@ -105,9 +105,9 @@ function handleEvent(event) {
});
}
else if(isNaN(event.message.text)){
else if(0 < event.message.text.substr(0,2)*1 < 27){
var selectnum = (event.message.text*1);
var selectnum = (event.message.text.substr(0,2)*1);
if(selectnum >=0 || selectnum <=27){
result.text = '목록에 존재하지 않는 콘서트입니다.';
......@@ -137,11 +137,10 @@ function handleEvent(event) {
var temp = body.split(':');
videourl.url += "https://www.youtube.com/watch?v=" + temp1[13].substr(2,11);
});
console.log(videourl.url);
client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject);
console.log(videourl.url);
client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject);
});
})};
app.post('/webhook', line.middleware(config), (req, res) => {
......