Skip to content
XHXIAIEIN edited this page Jan 28, 2021 · 8 revisions

lol-champ-select

在英雄选择页面中调用的API

可选英雄列表

返回的是一个装满 championId 的数组,没有进行分类。

await connection.request('GET', '/lol-champ-select/v1/pickable-champion-ids')

当前选择的英雄

注意,这里是已经确认选择的英雄。返回的是 championId

await connection.request('GET', '/lol-champ-select/v1/current-champion')

英雄数据

根据 championId 查看指定的英雄选择状态,例如角色定位、是否可选,是否免费轮换,是否已拥有,成就等级...

await connection.request('GET', '/lol-champ-select/v1/grid-champions/{championId}')

返回结果

{
    "disabled": false,
    "freeToPlay": false,
    "freeToPlayForQueue": false,
    "freeToPlayReward": false,
    "id": 16,
    "masteryChestGranted": false,
    "masteryLevel": 1,
    "masteryPoints": 1000,
    "name": "众星之子",
    "owned": true,
    "positionsFavorited": [
        "support"
    ],
    "rented": false,
    "roles": [
        "support",
        "mage"
    ],
    "selectionStatus": {
        "banIntented": false,
        "banIntentedByMe": false,
        "isBanned": false,
        "pickIntented": false,
        "pickIntentedByMe": false,
        "pickIntentedPosition": "",
        "pickedByOtherOrBanned": false,
        "selectedByMe": false
    },
    "squarePortraitPath": "/lol-game-data/assets/v1/champion-icons/16.png"
}
Clone this wiki locally