황성연

스펠 이미지 불러오기

......@@ -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;
......