diff --git a/app/common/config.py b/app/common/config.py index d0685b33..7009893b 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -130,7 +130,7 @@ class Config(QConfig): YEAR = 2023 AUTHOR = "Zaphkiel" -VERSION = "0.12.1" +VERSION = "0.12.2" FEEDBACK_URL = "https://github.com/Zzaphkiel/Seraphine/issues?q=is%3Aissue" GITHUB_URL = "https://github.com/Zzaphkiel/Seraphine" LOCAL_PATH = f"{os.getenv('APPDATA')}\\Seraphine" diff --git a/app/lol/connector.py b/app/lol/connector.py index b152f097..a10dfcc5 100644 --- a/app/lol/connector.py +++ b/app/lol/connector.py @@ -869,6 +869,11 @@ async def getSGPtoken(self): res = await res.json() return res['accessToken'] + + async def restartClient(self): + res = await self.__post("/riotclient/kill-and-restart-ux") + + return res async def getSummonerGamesByPuuidViaSGP(self, token, puuid, begIdx, endIdx): logger.debug( diff --git a/app/view/main_window.py b/app/view/main_window.py index fc142de4..9b39e39e 100644 --- a/app/view/main_window.py +++ b/app/view/main_window.py @@ -846,6 +846,9 @@ async def __onGameStart(self): # 如果是进游戏后开的软件,需要先把友方信息更新上去 async def paintAllySummonersInfo(): + if self.gameInfoInterface.allyOrder and len(self.gameInfoInterface.allyOrder) == 5: + return + self.gameInfoInterface.allyChampions = {} self.gameInfoInterface.allyOrder = []