Showing
10 changed files
with
77 additions
and
16 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,14 +257,69 @@ module.exports = function(app){ | ... | @@ -257,14 +257,69 @@ 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 | - | 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 | + | ||
322 | + | ||
268 | 323 | ||
269 | 324 | ||
270 | 325 | ||
... | @@ -274,20 +329,26 @@ module.exports = function(app){ | ... | @@ -274,20 +329,26 @@ module.exports = function(app){ |
274 | 329 | ||
275 | 330 | ||
276 | 331 | ||
277 | - res.render('index', { title: req.params.username , | 332 | + res.render('index', { title: req.params.username , |
278 | - c_id: champ_id, | 333 | + c_id: champ_id, |
279 | - c_name: champ_name, | 334 | + c_name: champ_name, |
280 | - c_point: champ_point, | 335 | + c_point: champ_point, |
281 | - c_pic: champ_pic, | 336 | + c_pic: champ_pic, |
282 | - c_rotation : rotation_pic, | 337 | + c_rotation : rotation_pic, |
283 | - c_rotation_newbie : rotation_pic_newbie, | 338 | + c_rotation_newbie : rotation_pic_newbie, |
284 | - c_summoner: summoner, | 339 | + c_summoner: summoner, |
285 | - c_wins: wins, | 340 | + c_wins: wins, |
286 | - c_losses: losses, | 341 | + c_losses: losses, |
287 | - c_tier: tier, | 342 | + c_tier: tier, |
288 | - c_imgtier: img_tier, | 343 | + c_imgtier: img_tier, |
289 | - c_rank: rank, | 344 | + c_rank: rank, |
290 | - c_leaguePoint: leaguePoints | 345 | + c_leaguePoint: leaguePoints |
346 | + }); | ||
347 | + | ||
348 | + }); | ||
349 | + }); | ||
350 | + }); | ||
351 | + }); | ||
291 | }); | 352 | }); |
292 | }); | 353 | }); |
293 | }); | 354 | }); | ... | ... |
-
Please register or login to post a comment