Showing
10 changed files
with
62 additions
and
1 deletions
lolinfo/ranked-emblems/Emblem_Bronze.png
0 → 100644
299 KB
lolinfo/ranked-emblems/Emblem_Challenger.png
0 → 100644
387 KB
lolinfo/ranked-emblems/Emblem_Diamond.png
0 → 100644
353 KB
lolinfo/ranked-emblems/Emblem_Gold.png
0 → 100644
295 KB
357 KB
lolinfo/ranked-emblems/Emblem_Iron.png
0 → 100644
256 KB
lolinfo/ranked-emblems/Emblem_Master.png
0 → 100644
362 KB
lolinfo/ranked-emblems/Emblem_Platinum.png
0 → 100644
305 KB
lolinfo/ranked-emblems/Emblem_Silver.png
0 → 100644
295 KB
... | @@ -257,13 +257,68 @@ module.exports = function(app){ | ... | @@ -257,13 +257,68 @@ module.exports = function(app){ |
257 | var match_gameId = new Array(); | 257 | var match_gameId = new Array(); |
258 | var match_mychamp = new Array(); | 258 | var match_mychamp = new Array(); |
259 | 259 | ||
260 | - for(var i=0; i<10; i++){ | 260 | + for(var i=0; i<5; i++){ |
261 | match_gameId.push(match_json[i].gameId); | 261 | match_gameId.push(match_json[i].gameId); |
262 | match_mychamp.push(match_json[i].champion); | 262 | match_mychamp.push(match_json[i].champion); |
263 | } | 263 | } |
264 | console.log(match_gameId); | 264 | console.log(match_gameId); |
265 | console.log(match_mychamp); | 265 | console.log(match_mychamp); |
266 | 266 | ||
267 | + var match1Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[0] + "?api_key=" + apikey; | ||
268 | + request(match1Url,function(error,response,body){ | ||
269 | + var match1_json=JSON.parse(body); | ||
270 | + console.log(match1_json); | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + var match2Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[1] + "?api_key=" + apikey; | ||
279 | + request(match2Url,function(error,response,body){ | ||
280 | + var match2_json=JSON.parse(body); | ||
281 | + console.log(match2_json); | ||
282 | + | ||
283 | + | ||
284 | + | ||
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | ||
289 | + var match3Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[2] + "?api_key=" + apikey; | ||
290 | + request(match3Url,function(error,response,body){ | ||
291 | + var match3_json=JSON.parse(body); | ||
292 | + console.log(match3_json); | ||
293 | + | ||
294 | + | ||
295 | + | ||
296 | + | ||
297 | + | ||
298 | + | ||
299 | + var match4Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[3] + "?api_key=" + apikey; | ||
300 | + request(match4Url,function(error,response,body){ | ||
301 | + var match4_json=JSON.parse(body); | ||
302 | + console.log(match4_json); | ||
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | ||
307 | + | ||
308 | + | ||
309 | + | ||
310 | + var match5Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[4] + "?api_key=" + apikey; | ||
311 | + request(match5Url,function(error,response,body){ | ||
312 | + var match5_json=JSON.parse(body); | ||
313 | + console.log(match5_json); | ||
314 | + | ||
315 | + | ||
316 | + | ||
317 | + | ||
318 | + | ||
319 | + | ||
320 | + | ||
321 | + | ||
267 | 322 | ||
268 | 323 | ||
269 | 324 | ||
... | @@ -289,6 +344,12 @@ module.exports = function(app){ | ... | @@ -289,6 +344,12 @@ module.exports = function(app){ |
289 | c_rank: rank, | 344 | c_rank: rank, |
290 | c_leaguePoint: leaguePoints | 345 | c_leaguePoint: leaguePoints |
291 | }); | 346 | }); |
347 | + | ||
348 | + }); | ||
349 | + }); | ||
350 | + }); | ||
351 | + }); | ||
352 | + }); | ||
292 | }); | 353 | }); |
293 | }); | 354 | }); |
294 | }); | 355 | }); | ... | ... |
-
Please register or login to post a comment