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 14:01:06 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
26c8fb4b05a4bee4e9376a99fc76918f8fb2c25f
26c8fb4b
1 parent
2945bc31
스펠 이미지 불러오기
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
lolinfo/router/mytest.js
lolinfo/router/mytest.js
View file @
26c8fb4
...
...
@@ -241,17 +241,15 @@ module.exports = function(app){
var
spec_selectedChamp_image
=
new
Array
();
var
spec_summonername
=
new
Array
();
var
spec_spellId
=
new
Array
();
var
spec_spellimage
=
new
Array
();
for
(
var
i
=
0
;
i
<
10
;
i
++
){
spec_summonername
.
push
(
spec_participants
[
i
].
summonerName
);
spec_spellId
.
push
(
spec_participants
[
i
].
spell1Id
);
spec_spellId
.
push
(
spec_participants
[
i
].
spell2Id
);
}
console
.
log
(
spec_spellId
);
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
for
(
var
key
in
champion
)
{
for
(
key
in
champion
)
{
if
(
champion
.
hasOwnProperty
(
key
)
&&
champion
[
key
].
key
==
spec_bannedChamp
[
i
].
championId
)
{
spec_bannedChamp_image
.
push
(
"http://ddragon.leagueoflegends.com/cdn/10.11.1/img/champion/"
+
champion
[
key
].
id
+
".png"
);
}
...
...
@@ -259,8 +257,16 @@ module.exports = function(app){
spec_selectedChamp_image
.
push
(
"http://ddragon.leagueoflegends.com/cdn/10.11.1/img/champion/"
+
champion
[
key
].
id
+
".png"
);
}
}
}
for
(
var
i
=
0
;
i
<
20
;
i
++
)
{
for
(
key
in
spell
){
if
(
spell
.
hasOwnProperty
(
key
)
&&
spell
[
key
].
key
==
spec_spellId
[
i
]){
spec_spellimage
.
push
(
"http://ddragon.leagueoflegends.com/cdn/10.12.1/img/spell/"
+
spell
[
key
].
id
+
".png"
);
}
}
}
console
.
log
(
spec_spellimage
);
}
var
matchUrl
=
"https://kr.api.riotgames.com/lol/match/v4/matchlists/by-account/"
+
accountId
+
"?api_key="
+
apikey
;
...
...
Please
register
or
login
to post a comment