Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -111,16 +111,17 @@ function GetPlayerInfo(playerID, season, eventObj){ | ... | @@ -111,16 +111,17 @@ function GetPlayerInfo(playerID, season, eventObj){ |
111 | 111 | ||
112 | function SelectAPI(eventObj, commingMsg){ | 112 | function SelectAPI(eventObj, commingMsg){ |
113 | console.log("Step : " + step.toString()); | 113 | console.log("Step : " + step.toString()); |
114 | + ++step; | ||
114 | if(tryParse.int(commingMsg) != null){ // 리그 선택 | 115 | if(tryParse.int(commingMsg) != null){ // 리그 선택 |
115 | - if(step == 0){ | 116 | + if(step == 1){ |
116 | isLeagueInfo = true; | 117 | isLeagueInfo = true; |
117 | SelectLeague(tryParse.int(commingMsg)); | 118 | SelectLeague(tryParse.int(commingMsg)); |
118 | Reply(eventObj, SelectLeagueInfoMessage()); | 119 | Reply(eventObj, SelectLeagueInfoMessage()); |
119 | } | 120 | } |
120 | - else if(step == 1 && isLeagueInfo){ | 121 | + else if(step == 2 && isLeagueInfo){ |
121 | SelectLeagueInfo(eventObj, tryParse.int(commingMsg)); | 122 | SelectLeagueInfo(eventObj, tryParse.int(commingMsg)); |
122 | } | 123 | } |
123 | - else if(step == 1 && !isLeagueInfo){ | 124 | + else if(step == 2 && !isLeagueInfo){ |
124 | SelectTeamInfo(tryParse.int(commingMsg)); | 125 | SelectTeamInfo(tryParse.int(commingMsg)); |
125 | } | 126 | } |
126 | } | 127 | } |
... | @@ -130,7 +131,6 @@ function SelectAPI(eventObj, commingMsg){ | ... | @@ -130,7 +131,6 @@ function SelectAPI(eventObj, commingMsg){ |
130 | Reply(eventObj, SelectTeamInfoMessage()); | 131 | Reply(eventObj, SelectTeamInfoMessage()); |
131 | }); | 132 | }); |
132 | } | 133 | } |
133 | - step++; | ||
134 | } | 134 | } |
135 | 135 | ||
136 | function SelectLeague(inputNum){ | 136 | function SelectLeague(inputNum){ | ... | ... |
-
Please register or login to post a comment