박찬수

초기화 기능 수정 및 득점 순위 기능 수정

......@@ -4,7 +4,7 @@ const TARGET_URL = 'https://api.line.me/v2/bot/message/push'
const MULTI_TARGET_URL = 'https://api.line.me/v2/bot/message/multicast'
const BROAD_TARGET_URL = 'https://api.line.me/v2/bot/message/broadcast'
const TOKEN = 'XOyIf8jsoQKq3b1zqxE4wawAoFU2Hz433AO3w8/ye+i6+2KrXpyfFwY0Dk/xhHQLPgtgPTiEP/m4IRW+SlVhdtzfH6c0Lfdw6nJ95QOugHfNWfviAmn5Uojh8LQJeAy21bvaNMCy11f+qgLSRnXmCgdB04t89/1O/w1cDnyilFU='
const USER_ID = 'Uc4258407a7677769f74ba184ec036651'
const USER_ID = 'Uc4258407a7677769f74ba184ec036651'
//Single User
// request.post(
......
......@@ -190,7 +190,7 @@ function SelectLeagueInfo(eventObj, inputNum){
break;
case 2: // 득점 순위
soccerAPI.TopScorer(currentLeagueID, function(body){
let standingJson = JSON.parse(body);
let topScorerJson = JSON.parse(body);
let valueText = "";
for(var i = 0; i < 20; i++){
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){
break;
case 3: // 도움 순위
soccerAPI.TopAssist(currentLeagueID, function(body){
let standingJson = JSON.parse(body);
let topAssistJson = JSON.parse(body);
let valueText = "";
for(var i = 0; i < 20; i++){
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';
......