Showing
1 changed file
with
6 additions
and
6 deletions
... | @@ -103,10 +103,9 @@ function handleEvent(event) { | ... | @@ -103,10 +103,9 @@ function handleEvent(event) { |
103 | 103 | ||
104 | client.replyMessage(event.replyToken, showlist).then(resolve).catch(reject); | 104 | client.replyMessage(event.replyToken, showlist).then(resolve).catch(reject); |
105 | }); | 105 | }); |
106 | - | ||
107 | } | 106 | } |
108 | 107 | ||
109 | - else if(0 < event.message.text.substring(0,2)*1 < 27){ | 108 | + else if(0 < event.message.text.substr(0,2)*1 && event.message.text.substr(0,2)*1 < 27){ |
110 | 109 | ||
111 | var selectnum = (event.message.text.substr(0,2)*1); | 110 | var selectnum = (event.message.text.substr(0,2)*1); |
112 | 111 | ||
... | @@ -142,9 +141,10 @@ function handleEvent(event) { | ... | @@ -142,9 +141,10 @@ function handleEvent(event) { |
142 | console.log(videourl.url); | 141 | console.log(videourl.url); |
143 | client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); | 142 | client.replyMessage(event.replyToken, videourl).then(resolve).catch(reject); |
144 | }); | 143 | }); |
145 | - })}; | 144 | + }); |
146 | - | 145 | +} |
147 | - | 146 | + else |
147 | + { | ||
148 | return new Promise(function(resolve, reject) { | 148 | return new Promise(function(resolve, reject) { |
149 | //언어 감지 option | 149 | //언어 감지 option |
150 | var detect_options = { | 150 | var detect_options = { |
... | @@ -208,4 +208,4 @@ function handleEvent(event) { | ... | @@ -208,4 +208,4 @@ function handleEvent(event) { |
208 | 208 | ||
209 | }); | 209 | }); |
210 | } | 210 | } |
211 | - | 211 | +} |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment