Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박찬수
/
enjoy_soccer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박찬수
2022-06-09 11:36:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1cb15febb7b95e3fbac0b425d38e4546717f35f8
1cb15feb
1 parent
6a881a74
팀 순위 오류 수정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
reply.js
reply.js
View file @
1cb15fe
...
...
@@ -114,10 +114,10 @@ function SelectAPI(eventObj, commingMsg){
Reply
(
eventObj
,
SelectLeagueInfoMessage
());
}
else
if
(
step
==
1
&&
isLeagueInfo
){
Reply
(
eventObj
,
SelectLeagueInfo
(
tryParse
.
int
(
commingMsg
)
));
SelectLeagueInfo
(
eventObj
,
tryParse
.
int
(
commingMsg
));
}
else
if
(
step
==
1
&&
!
isLeagueInfo
){
Reply
(
eventObj
,
SelectTeamInfo
(
tryParse
.
int
(
commingMsg
)
));
SelectTeamInfo
(
tryParse
.
int
(
commingMsg
));
}
}
else
{
// 팀명 입력
...
...
@@ -170,7 +170,7 @@ function SelectLeague(inputNum){
return
leagueID
;
}
function
SelectLeagueInfo
(
inputNum
){
function
SelectLeagueInfo
(
eventObj
,
inputNum
){
let
returnMsg
=
"잘 못 고르셨습니다. 다시 골라주세요."
switch
(
inputNum
){
case
1
:
// 팀 순위
...
...
@@ -178,6 +178,7 @@ function SelectLeagueInfo(inputNum){
let
standingJson
=
JSON
.
parse
(
body
);
returnMsg
=
MakeReplyMessage
(
'팀 순위'
,
'순위|팀명|경기|득점|승리|무승부|패배|득점|??'
,
(
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
));
Reply
(
eventObj
,
returnMsg
);
});
break
;
case
2
:
// 득점 순위
...
...
Please
register
or
login
to post a comment