https://ddragon.leagueoflegends.com/cdn/{ver}/data/zh_CN/summoner.jsonhttps://ddragon.leagueoflegends.com/cdn/16.23.1/data/zh_CN/summoner.json同样是 Data Dragon 的数据,包含全部召唤师技能:id(英文代号)、name(中文名)、description(效果说明)、cooldown(冷却秒数)、key(数字 ID)。
做战绩解析时特别有用:对局数据里技能只给数字 ID,得靠这张表翻译成「闪现」「惩戒」。key 字段就是那个数字,做个反查字典即可。
图标:https://ddragon.leagueoflegends.com/cdn/{ver}/img/spell/{id}.png。返回 33KB,很轻,可以随页面一起加载。
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
ver |
string | 必填 | 16.23.1 | 游戏版本号 |
https://ddragon.leagueoflegends.com/cdn/{ver}/data/zh_CN/summoner.json
此处将显示接口返回结果…
{
"data": {
"SummonerFlash": {
"id": "SummonerFlash", "name": "闪现", "key": "4",
"description": "向指定方向瞬移一段距离", "cooldown": 300
}
}
}
—