Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -4,7 +4,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/push' | ... | @@ -4,7 +4,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/push' |
4 | const MULTI_TARGET_URL = 'https://api.line.me/v2/bot/message/multicast' | 4 | const MULTI_TARGET_URL = 'https://api.line.me/v2/bot/message/multicast' |
5 | const BROAD_TARGET_URL = 'https://api.line.me/v2/bot/message/broadcast' | 5 | const BROAD_TARGET_URL = 'https://api.line.me/v2/bot/message/broadcast' |
6 | const TOKEN = 'XOyIf8jsoQKq3b1zqxE4wawAoFU2Hz433AO3w8/ye+i6+2KrXpyfFwY0Dk/xhHQLPgtgPTiEP/m4IRW+SlVhdtzfH6c0Lfdw6nJ95QOugHfNWfviAmn5Uojh8LQJeAy21bvaNMCy11f+qgLSRnXmCgdB04t89/1O/w1cDnyilFU=' | 6 | const TOKEN = 'XOyIf8jsoQKq3b1zqxE4wawAoFU2Hz433AO3w8/ye+i6+2KrXpyfFwY0Dk/xhHQLPgtgPTiEP/m4IRW+SlVhdtzfH6c0Lfdw6nJ95QOugHfNWfviAmn5Uojh8LQJeAy21bvaNMCy11f+qgLSRnXmCgdB04t89/1O/w1cDnyilFU=' |
7 | -const USER_ID = '사Uc4258407a7677769f74ba184ec036651' | 7 | +const USER_ID = 'Uc4258407a7677769f74ba184ec036651' |
8 | 8 | ||
9 | //Single User | 9 | //Single User |
10 | // request.post( | 10 | // request.post( | ... | ... |
... | @@ -190,7 +190,7 @@ function SelectLeagueInfo(eventObj, inputNum){ | ... | @@ -190,7 +190,7 @@ function SelectLeagueInfo(eventObj, inputNum){ |
190 | break; | 190 | break; |
191 | case 2: // 득점 순위 | 191 | case 2: // 득점 순위 |
192 | soccerAPI.TopScorer(currentLeagueID, function(body){ | 192 | soccerAPI.TopScorer(currentLeagueID, function(body){ |
193 | - let standingJson = JSON.parse(body); | 193 | + let topScorerJson = JSON.parse(body); |
194 | let valueText = ""; | 194 | let valueText = ""; |
195 | for(var i = 0; i < 20; i++){ | 195 | for(var i = 0; i < 20; i++){ |
196 | valueText += (i+1).toString() + "|" + topScorerJson.response[i].player.name + "|" + topScorerJson.response[i].statistics[0].team.name + "|" + topScorerJson.response[i].statistics[0].games.appearences + "|" + topScorerJson.response[i].statistics[0].goals.total + '\n'; | 196 | valueText += (i+1).toString() + "|" + topScorerJson.response[i].player.name + "|" + topScorerJson.response[i].statistics[0].team.name + "|" + topScorerJson.response[i].statistics[0].games.appearences + "|" + topScorerJson.response[i].statistics[0].goals.total + '\n'; |
... | @@ -201,7 +201,7 @@ function SelectLeagueInfo(eventObj, inputNum){ | ... | @@ -201,7 +201,7 @@ function SelectLeagueInfo(eventObj, inputNum){ |
201 | break; | 201 | break; |
202 | case 3: // 도움 순위 | 202 | case 3: // 도움 순위 |
203 | soccerAPI.TopAssist(currentLeagueID, function(body){ | 203 | soccerAPI.TopAssist(currentLeagueID, function(body){ |
204 | - let standingJson = JSON.parse(body); | 204 | + let topAssistJson = JSON.parse(body); |
205 | let valueText = ""; | 205 | let valueText = ""; |
206 | for(var i = 0; i < 20; i++){ | 206 | for(var i = 0; i < 20; i++){ |
207 | valueText += (i+1).toString() + "|" + topAssistJson.response[i].player.name + "|" + topAssistJson.response[i].statistics[0].team.name + "|" + topAssistJson.response[i].statistics[0].games.appearences + "|" + topAssistJson.response[i].statistics[0].goals.assists + '\n'; | 207 | valueText += (i+1).toString() + "|" + topAssistJson.response[i].player.name + "|" + topAssistJson.response[i].statistics[0].team.name + "|" + topAssistJson.response[i].statistics[0].games.appearences + "|" + topAssistJson.response[i].statistics[0].goals.assists + '\n'; | ... | ... |
-
Please register or login to post a comment