Showing
1 changed file
with
0 additions
and
7 deletions
... | @@ -18,8 +18,6 @@ var ans_sheet="", i, question, answer, contents, result; | ... | @@ -18,8 +18,6 @@ var ans_sheet="", i, question, answer, contents, result; |
18 | app.post('/hook', function (req, res) { | 18 | app.post('/hook', function (req, res) { |
19 | var eventObj = req.body.events[0]; | 19 | var eventObj = req.body.events[0]; |
20 | var message = eventObj.message; | 20 | var message = eventObj.message; |
21 | - ans_sheet="B0=1 B1=1 B2=1 B3=1 B4=1 B5=1 B6=1 B7=1 B8=1 B9=1 B10=1 B11=1 B12=1 B13=1 B14=1 B15=1 B16=1 B17=1 B18=1 B19=1 B20=1 B21=1 B22=1 B23=1 B24=1 B25=1 B26=1 B27="; | ||
22 | - i=28; | ||
23 | console.log('======================', new Date() ,'======================'); | 21 | console.log('======================', new Date() ,'======================'); |
24 | console.log('[request]', req.body); | 22 | console.log('[request]', req.body); |
25 | console.log('[request source] ', eventObj.source); | 23 | console.log('[request source] ', eventObj.source); |
... | @@ -27,7 +25,6 @@ app.post('/hook', function (req, res) { | ... | @@ -27,7 +25,6 @@ app.post('/hook', function (req, res) { |
27 | if (message.text=="시작"){ | 25 | if (message.text=="시작"){ |
28 | i=0; | 26 | i=0; |
29 | ans_sheet=""; | 27 | ans_sheet=""; |
30 | - console.log("====================================="); | ||
31 | request.get({ | 28 | request.get({ |
32 | url:Question_URL | 29 | url:Question_URL |
33 | },function(err,res,body){ | 30 | },function(err,res,body){ |
... | @@ -57,14 +54,12 @@ app.post('/hook', function (req, res) { | ... | @@ -57,14 +54,12 @@ app.post('/hook', function (req, res) { |
57 | }] | 54 | }] |
58 | } | 55 | } |
59 | },(error, response, body) => { | 56 | },(error, response, body) => { |
60 | - console.log("====================================="); | ||
61 | i+=1; | 57 | i+=1; |
62 | }); | 58 | }); |
63 | 59 | ||
64 | }); | 60 | }); |
65 | } | 61 | } |
66 | else if(message.text=="1" || message.text=="2"){ | 62 | else if(message.text=="1" || message.text=="2"){ |
67 | - console.log("====================================="); | ||
68 | ans_sheet+=message.text+" "; | 63 | ans_sheet+=message.text+" "; |
69 | console.log(ans_sheet); | 64 | console.log(ans_sheet); |
70 | if (i==28){ | 65 | if (i==28){ |
... | @@ -130,9 +125,7 @@ app.post('/hook', function (req, res) { | ... | @@ -130,9 +125,7 @@ app.post('/hook', function (req, res) { |
130 | }] | 125 | }] |
131 | } | 126 | } |
132 | },(error, response, body) => { | 127 | },(error, response, body) => { |
133 | - console.log("====================================="); | ||
134 | i+=1; | 128 | i+=1; |
135 | - | ||
136 | }); | 129 | }); |
137 | }); | 130 | }); |
138 | } | 131 | } | ... | ... |
-
Please register or login to post a comment