나혜원

ud

......@@ -105,7 +105,8 @@ function handleEvent(event) {
});
}
else if(0 < event.message.text.substr(0,2)*1 < 27){
else if(0 < event.message.text.substring(0,2)*1 < 27){
var selectnum = (event.message.text.substr(0,2)*1);
......@@ -143,15 +144,7 @@ function handleEvent(event) {
});
})};
app.post('/webhook', line.middleware(config), (req, res) => {
console.log(res.statusCode);
Promise
.all(req.body.events.map(handleEvent2))
.then((result) => res.json(result))
.catch((err)=>{console.log(err);
})
});
return new Promise(function(resolve, reject) {
//언어 감지 option
var detect_options = {
......