박찬수

팀 순위 오류 수정

Showing 1 changed file with 4 additions and 3 deletions
...@@ -114,10 +114,10 @@ function SelectAPI(eventObj, commingMsg){ ...@@ -114,10 +114,10 @@ function SelectAPI(eventObj, commingMsg){
114 Reply(eventObj, SelectLeagueInfoMessage()); 114 Reply(eventObj, SelectLeagueInfoMessage());
115 } 115 }
116 else if(step == 1 && isLeagueInfo){ 116 else if(step == 1 && isLeagueInfo){
117 - Reply(eventObj, SelectLeagueInfo(tryParse.int(commingMsg))); 117 + SelectLeagueInfo(eventObj, tryParse.int(commingMsg));
118 } 118 }
119 else if(step == 1 && !isLeagueInfo){ 119 else if(step == 1 && !isLeagueInfo){
120 - Reply(eventObj, SelectTeamInfo(tryParse.int(commingMsg))); 120 + SelectTeamInfo(tryParse.int(commingMsg));
121 } 121 }
122 } 122 }
123 else{ // 팀명 입력 123 else{ // 팀명 입력
...@@ -170,7 +170,7 @@ function SelectLeague(inputNum){ ...@@ -170,7 +170,7 @@ function SelectLeague(inputNum){
170 return leagueID; 170 return leagueID;
171 } 171 }
172 172
173 -function SelectLeagueInfo(inputNum){ 173 +function SelectLeagueInfo(eventObj, inputNum){
174 let returnMsg = "잘 못 고르셨습니다. 다시 골라주세요." 174 let returnMsg = "잘 못 고르셨습니다. 다시 골라주세요."
175 switch(inputNum){ 175 switch(inputNum){
176 case 1: // 팀 순위 176 case 1: // 팀 순위
...@@ -178,6 +178,7 @@ function SelectLeagueInfo(inputNum){ ...@@ -178,6 +178,7 @@ function SelectLeagueInfo(inputNum){
178 let standingJson = JSON.parse(body); 178 let standingJson = JSON.parse(body);
179 returnMsg = MakeReplyMessage('팀 순위', '순위|팀명|경기|득점|승리|무승부|패배|득점|??', 179 returnMsg = MakeReplyMessage('팀 순위', '순위|팀명|경기|득점|승리|무승부|패배|득점|??',
180 (standingJson.response[0].league.standings[0][i].rank + "|" + standingJson.response[0].league.standings[0][i].team.name + "|" + standingJson.response[0].league.standings[0][i].all.played + "|" + standingJson.response[0].league.standings[0][i].points + "|" + standingJson.response[0].league.standings[0][i].all.win + "|" + standingJson.response[0].league.standings[0][i].all.draw + "|" + standingJson.response[0].league.standings[0][i].all.lose + "|" + standingJson.response[0].league.standings[0][i].all.goals.for + "|" + standingJson.response[0].league.standings[0][i].all.goals.against)); 180 (standingJson.response[0].league.standings[0][i].rank + "|" + standingJson.response[0].league.standings[0][i].team.name + "|" + standingJson.response[0].league.standings[0][i].all.played + "|" + standingJson.response[0].league.standings[0][i].points + "|" + standingJson.response[0].league.standings[0][i].all.win + "|" + standingJson.response[0].league.standings[0][i].all.draw + "|" + standingJson.response[0].league.standings[0][i].all.lose + "|" + standingJson.response[0].league.standings[0][i].all.goals.for + "|" + standingJson.response[0].league.standings[0][i].all.goals.against));
181 + Reply(eventObj, returnMsg);
181 }); 182 });
182 break; 183 break;
183 case 2: // 득점 순위 184 case 2: // 득점 순위
......