Toggle navigation
Toggle navigation
This project
Loading...
Sign in
황성연
/
lolinfo.gg
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
황성연
2020-06-21 16:59:18 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b79cb24b0bedd5fcafd847e1054080c5cf762ad5
b79cb24b
1 parent
f1b289e0
대전기록 데이터 맵핑
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
lolinfo/router/mytest.js
lolinfo/router/mytest.js
View file @
b79cb24
...
...
@@ -285,7 +285,6 @@ module.exports = function(app){
var
match1Url
=
"https://kr.api.riotgames.com/lol/match/v4/matches/"
+
match_gameId
[
0
]
+
"?api_key="
+
apikey
;
request
(
match1Url
,
function
(
error
,
response
,
body
){
var
match1_json
=
JSON
.
parse
(
body
);
console
.
log
(
match1_json
);
var
match1_gameLength
=
match_json
.
gameDuration
;
var
match1_teams
=
match1_json
.
teams
;
var
match1_participants
=
match1_json
.
participants
;
...
...
@@ -320,7 +319,6 @@ module.exports = function(app){
};
match1_kda
.
push
(
obj
);
}
console
.
log
(
match1_kda
);
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
for
(
key
in
champion
)
{
...
...
@@ -340,10 +338,16 @@ module.exports = function(app){
}
}
}
console
.
log
(
match1_bannedChamp_image
);
console
.
log
(
match1_selectedChamp_image
);
console
.
log
(
match1_spell_image
);
var
match1
=
{
"summonerName"
:
match1_summonerName
,
"selectedChamp_image"
:
match1_selectedChamp_image
,
"bannedChamp_image"
:
match1_bannedChamp_image
,
"spell_image"
:
match1_spell_image
,
"kda"
:
match1_kda
};
console
.
log
(
match1
);
var
match2Url
=
"https://kr.api.riotgames.com/lol/match/v4/matches/"
+
match_gameId
[
1
]
+
"?api_key="
+
apikey
;
request
(
match2Url
,
function
(
error
,
response
,
body
){
...
...
Please
register
or
login
to post a comment