Skip to content

Commit

Permalink
修复自动交换不可用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Nov 20, 2024
1 parent 1b95b13 commit 0c895b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,14 +809,14 @@ async def getChampSelectSession(self):
# 同意交换英雄
@retry()
async def acceptTrade(self, id):
res = await self.__post(f"/lol-champ-select/v1/session/trades/{id}/accept")
return await res.json()
await self.__post(f"/lol-champ-select/v1/session/trades/{id}/accept")
await self.__post(f"/lol-champ-select/v1/ongoing-trade/{id}/clear")

# 同意交换楼层
@retry()
async def acceptSwap(self, id):
res = await self.__post(f"/lol-champ-select/v1/session/swaps/{id}/accept")
return await res.json()
await self.__post(f"/lol-champ-select/v1/session/swaps/{id}/accept")
await self.__post(f"/lol-champ-select/v1/ongoing-swap/{id}/clear")

# 备战席交换
async def benchSwap(self, championId):
Expand Down

0 comments on commit 0c895b1

Please sign in to comment.