Skip to content

Commit

Permalink
添加召唤师技能设置接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Jan 10, 2025
1 parent 32249c8 commit 049666b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,12 @@ async def createRunePage(self, name, primaryId, secondaryId, perks):
res = await self.__post("/lol-perks/v1/pages", data=body)
res = await res.json()

@retry()
async def setSummonerSpells(self, spell1Id, spell2Id):
data = {'spell1Id': spell1Id, 'spell2Id': spell2Id}

return await self.__patch("/lol-champ-select/v1/session/my-selection", data)

async def spectate(self, summonerName):
info = await self.getSummonerByName(summonerName)
puuid = info.get('puuid')
Expand Down
3 changes: 2 additions & 1 deletion app/view/career_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def __init__(self, parent=None):
self.tr('games)'))
self.winsLabel = ColorLabel(self.tr("Wins:") + " None", 'win')
self.lossesLabel = ColorLabel(self.tr("Losses:") + " None", 'lose')
self.kdaLabel = QLabel(self.tr("KDA:") + " None / None / None" + self.tr("(") + "0" + self.tr(")"))
self.kdaLabel = QLabel(
self.tr("KDA:") + " None / None / None" + self.tr("(") + "0" + self.tr(")"))
self.championsCard = ChampionsCard()
self.recentTeamButton = PushButton(self.tr("Recent teammates"))
self.filterComboBox = ComboBox()
Expand Down

0 comments on commit 049666b

Please sign in to comment.