은승우

???

Showing 1 changed file with 2 additions and 2 deletions
...@@ -81,7 +81,6 @@ function handleEvent(event) { ...@@ -81,7 +81,6 @@ function handleEvent(event) {
81 //papago 언어 감지 81 //papago 언어 감지
82 request.post(detect_options,async (error,response,body)=>{ 82 request.post(detect_options,async (error,response,body)=>{
83 if(!error && response.statusCode == 200){ 83 if(!error && response.statusCode == 200){
84 - console.log(response.body);
85 var detect_body = JSON.parse(response.body); 84 var detect_body = JSON.parse(response.body);
86 var source = ''; 85 var source = '';
87 var target = ''; 86 var target = '';
...@@ -112,7 +111,8 @@ function handleEvent(event) { ...@@ -112,7 +111,8 @@ function handleEvent(event) {
112 // Message 잘 찍히는지 확인 111 // Message 잘 찍히는지 확인
113 112
114 result.text = objBody.message.result.translatedText; 113 result.text = objBody.message.result.translatedText;
115 - console.log(result); 114 + console.log("source: "+objBody);
115 + console.log("result: "+result.text);
116 //번역된 문장 보내기 116 //번역된 문장 보내기
117 client.replyMessage(event.replyToken,result).then(resolve).catch(reject); 117 client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
118 } 118 }
......