황성연

대전기록 데이터 맵핑

......@@ -285,7 +285,6 @@ module.exports = function(app){
var match1Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[0] + "?api_key=" + apikey;
request(match1Url,function(error,response,body){
var match1_json = JSON.parse(body);
console.log(match1_json);
var match1_gameLength = match_json.gameDuration;
var match1_teams = match1_json.teams;
var match1_participants = match1_json.participants;
......@@ -320,7 +319,6 @@ module.exports = function(app){
};
match1_kda.push(obj);
}
console.log(match1_kda);
for(var i=0; i<10; i++) {
for(key in champion) {
......@@ -340,10 +338,16 @@ module.exports = function(app){
}
}
}
console.log(match1_bannedChamp_image);
console.log(match1_selectedChamp_image);
console.log(match1_spell_image);
var match1 = {
"summonerName" : match1_summonerName,
"selectedChamp_image" : match1_selectedChamp_image,
"bannedChamp_image" : match1_bannedChamp_image,
"spell_image" : match1_spell_image,
"kda" : match1_kda
};
console.log(match1);
var match2Url = "https://kr.api.riotgames.com/lol/match/v4/matches/" + match_gameId[1] + "?api_key=" + apikey;
request(match2Url,function(error,response,body){
......