Showing
1 changed file
with
15 additions
and
0 deletions
... | @@ -2,7 +2,12 @@ module.exports = function(app){ | ... | @@ -2,7 +2,12 @@ module.exports = function(app){ |
2 | 2 | ||
3 | var request = require("request"); | 3 | var request = require("request"); |
4 | var urlenconde = require('urlencode'); | 4 | var urlenconde = require('urlencode'); |
5 | +<<<<<<< HEAD | ||
5 | var apikey = "RGAPI-26fe9028-bf28-4baa-a0e0-34c116c57742"//api | 6 | var apikey = "RGAPI-26fe9028-bf28-4baa-a0e0-34c116c57742"//api |
7 | +======= | ||
8 | +var apikey = "RGAPI-e4aabf85-2067-48cb-82ab-39bdf7c07325"//api | ||
9 | + | ||
10 | +>>>>>>> 2405bb4c8a3dae402c7d281fdffcda56ffb4ecfb | ||
6 | 11 | ||
7 | var profileIconId; //아이콘 번호 | 12 | var profileIconId; //아이콘 번호 |
8 | var revisionDate; //수정날짜 | 13 | var revisionDate; //수정날짜 |
... | @@ -33,6 +38,7 @@ var rotation_champ = new Array(); | ... | @@ -33,6 +38,7 @@ var rotation_champ = new Array(); |
33 | 38 | ||
34 | var info_summoner_json = JSON.parse(body); | 39 | var info_summoner_json = JSON.parse(body); |
35 | 40 | ||
41 | +<<<<<<< HEAD | ||
36 | accountId = info_summoner_json["accountId"]; | 42 | accountId = info_summoner_json["accountId"]; |
37 | id = info_summoner_json["id"]; | 43 | id = info_summoner_json["id"]; |
38 | summoner = info_summoner_json["name"]; | 44 | summoner = info_summoner_json["name"]; |
... | @@ -44,6 +50,15 @@ var rotation_champ = new Array(); | ... | @@ -44,6 +50,15 @@ var rotation_champ = new Array(); |
44 | var profileIcon; | 50 | var profileIcon; |
45 | profileIcon="http://ddragon.leagueoflegends.com/cdn/10.23.1/img/profileicon/"+profileIconId+".png"; | 51 | profileIcon="http://ddragon.leagueoflegends.com/cdn/10.23.1/img/profileicon/"+profileIconId+".png"; |
46 | 52 | ||
53 | +======= | ||
54 | + accountId = info_summoner_json["accountId"]; // GZC51rstNY47-cmgcap94mfLe7JNjF1fz3dGAdwS6pEo | ||
55 | + id = info_summoner_json["id"]; // T6cI_Zn5LEqyPuhCZz1do0Y-IJztJX1I1mvcQZRt9YKygA | ||
56 | + summoner = info_summoner_json["name"]; // 환하다 추야 | ||
57 | + profileIconId = info_summoner_json["profileIconId"]; // 980 | ||
58 | + summonerLevel = info_summoner_json["summonerLevel"]; // 250 | ||
59 | + revisionDate = info_summoner_json["revisionDate"]; // 1605519790000 | ||
60 | + | ||
61 | +>>>>>>> 2405bb4c8a3dae402c7d281fdffcda56ffb4ecfb | ||
47 | var champUrl = "https://kr.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/" + urlenconde(id) + "?api_key=" + apikey; | 62 | var champUrl = "https://kr.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/" + urlenconde(id) + "?api_key=" + apikey; |
48 | request(champUrl,function(error,response,body){ | 63 | request(champUrl,function(error,response,body){ |
49 | var info_champ_json = JSON.parse(body); | 64 | var info_champ_json = JSON.parse(body); | ... | ... |
-
Please register or login to post a comment