Showing
3 changed files
with
10 additions
and
2 deletions
... | @@ -2,7 +2,7 @@ module.exports = function (app) { | ... | @@ -2,7 +2,7 @@ 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 | - var apikey = "RGAPI-3f849a35-01f8-4915-a606-87cfc4800ef2"//api | 5 | + var apikey = "RGAPI-20b1defe-a1a0-40b5-abcf-b6e229fad8e9"//api |
6 | 6 | ||
7 | app.get('/', function (req, res) { | 7 | app.get('/', function (req, res) { |
8 | res.render('main', { title: 'R U TROLL?' }); | 8 | res.render('main', { title: 'R U TROLL?' }); |
... | @@ -71,7 +71,7 @@ module.exports = function (app) { | ... | @@ -71,7 +71,7 @@ module.exports = function (app) { |
71 | app.get('/search/:username/', function(req, res){ | 71 | app.get('/search/:username/', function(req, res){ |
72 | //롤 api url | 72 | //롤 api url |
73 | name = req.params.username; | 73 | name = req.params.username; |
74 | - var nameUrl = "https://kr.api.riotgames.com/lol/summoner/v3/summoners/by-name/" + urlenconde(name)+"?api_key="+ apikey; | 74 | + var nameUrl = "https://kr.api.riotgames.com/lol/summoner/v4/summoners/by-name/" + urlenconde(name)+"?api_key="+ apikey; |
75 | request(nameUrl,function(error,response,body){ | 75 | request(nameUrl,function(error,response,body){ |
76 | var info_summoner_json = JSON.parse(body); | 76 | var info_summoner_json = JSON.parse(body); |
77 | accountId = info_summoner_json["accountId"]; | 77 | accountId = info_summoner_json["accountId"]; | ... | ... |
... | @@ -53,7 +53,11 @@ | ... | @@ -53,7 +53,11 @@ |
53 | <img src= "/FindMelogo.png" width = 150, height = 150/> | 53 | <img src= "/FindMelogo.png" width = 150, height = 150/> |
54 | </div> | 54 | </div> |
55 | <div class="center2"> | 55 | <div class="center2"> |
56 | + <div> | ||
56 | <input type="text" class="input_text" placeholder="소환사 이름"> | 57 | <input type="text" class="input_text" placeholder="소환사 이름"> |
58 | + <input type="checkbox" id="tft_check" name="tft_check" checked> | ||
59 | + <label for="tft_check">TFT</label> | ||
60 | + </div> | ||
57 | <span class="input-group-btn"> | 61 | <span class="input-group-btn"> |
58 | <button id="searchButton" class="btn btn-primary" type="button" onclick="search(name)">click!</button> | 62 | <button id="searchButton" class="btn btn-primary" type="button" onclick="search(name)">click!</button> |
59 | </span> | 63 | </span> | ... | ... |
... | @@ -53,7 +53,11 @@ | ... | @@ -53,7 +53,11 @@ |
53 | <img src= "/FindMelogo.png" width = 150, height = 150/> | 53 | <img src= "/FindMelogo.png" width = 150, height = 150/> |
54 | </div> | 54 | </div> |
55 | <div class="center2"> | 55 | <div class="center2"> |
56 | + <div> | ||
56 | <input type="text" class="input_text" placeholder="소환사 이름"> | 57 | <input type="text" class="input_text" placeholder="소환사 이름"> |
58 | + <input type="checkbox" id="tft_check" name="tft_check" checked> | ||
59 | + <label for="tft_check">TFT</label> | ||
60 | + </div> | ||
57 | <span class="input-group-btn"> | 61 | <span class="input-group-btn"> |
58 | <button id="searchButton" class="btn btn-primary" type="button" onclick="search(name)">click!</button> | 62 | <button id="searchButton" class="btn btn-primary" type="button" onclick="search(name)">click!</button> |
59 | </span> | 63 | </span> | ... | ... |
-
Please register or login to post a comment