Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-2-OpenSourceSW
/
RUTROLL
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
박민근
2018-12-07 11:44:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab8ac196eda0641d9939d0d1a33848d1bf640725
ab8ac196
1 parent
531dc8c8
Add champion's names & images
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
router/Test.js
router/Test.js
View file @
ab8ac19
...
...
@@ -2,7 +2,7 @@ module.exports = function(app){
var
request
=
require
(
"request"
);
var
urlenconde
=
require
(
'urlencode'
);
var
apikey
=
"RGAPI-
83bf5bd8-d355-48f2-8531-d33c1befa920
"
//api
var
apikey
=
"RGAPI-
a7c53f9b-e980-42b3-af78-a3bc291bec7a
"
//api
var
profileIconId
;
//아이콘 번호
var
revisionDate
;
//수정날짜
...
...
@@ -45,7 +45,7 @@ var matches; //경기정보
for
(
var
i
=
0
;
i
<
champions_length
;
i
++
){
champ_point
[
i
]
=
(
info_champ_json
[
i
][
"championPoints"
]);
champ_id
[
i
]
=
info_champ_json
[
i
][
"champion
i
d"
];
champ_id
[
i
]
=
info_champ_json
[
i
][
"champion
I
d"
];
}
var
staticUrl
=
"http://ddragon.leagueoflegends.com/cdn/6.24.1/data/en_US/champion.json"
;
...
...
@@ -55,9 +55,8 @@ var matches; //경기정보
for
(
var
i
=
0
;
i
<
champ_id
.
length
;
i
++
){
for
(
js
in
champion
){
for
(
j
in
champion
[
js
]){
if
(
champion
[
js
][
"id"
]
==
champ_id
[
i
]){
champ_name
[
i
]
=
champion
[
js
][
"key"
];
console
.
log
(
champ_name
[
i
]);
if
(
champion
[
js
][
"key"
]
==
champ_id
[
i
]){
champ_name
[
i
]
=
champion
[
js
][
"id"
];
champ_pic
[
i
]
=
"http://ddragon.leagueoflegends.com/cdn/6.24.1/img/champion/"
+
champ_name
[
i
]
+
".png"
;
}
}
...
...
Please
register
or
login
to post a comment