From e1e3663e1f3cdd38672ffd9c601f1d87ed9fd0f5 Mon Sep 17 00:00:00 2001 From: Zzaphkiel <1278228162@qq.com> Date: Sat, 4 May 2024 01:33:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E8=87=B3=200.12.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/config.py | 2 +- app/lol/connector.py | 2 +- app/lol/tools.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/common/config.py b/app/common/config.py index 50d2100f..395f661c 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -130,7 +130,7 @@ class Config(QConfig): YEAR = 2023 AUTHOR = "Zaphkiel" -VERSION = "0.11.1" +VERSION = "0.12.0" 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 2d69f1f9..58d567fb 100644 --- a/app/lol/connector.py +++ b/app/lol/connector.py @@ -885,7 +885,7 @@ async def getSummonerByPuuidViaSGP(self, token, puuid): res = await self.__sgp__get(url, token) return await res.json() - def isInMainLand(self): + def isInMainland(self): return self.inMainLand @needLcu() diff --git a/app/lol/tools.py b/app/lol/tools.py index 4210afef..749cb36f 100644 --- a/app/lol/tools.py +++ b/app/lol/tools.py @@ -728,7 +728,7 @@ async def parseAllyGameInfo(session, currentSummonerId, useSGP=False): # 排位会有预选位 isRank = bool(session["myTeam"][0]["assignedPosition"]) - if useSGP and connector.isInMainLand(): + if useSGP and connector.isInMainland(): # 如果是国服就优先尝试 SGP try: token = await connector.getSGPtoken() @@ -783,7 +783,7 @@ async def parseGameInfoByGameflowSession(session, currentSummonerId, side, useSG else: team, _ = separateTeams(data, currentSummonerId) - if useSGP and connector.isInMainLand(): + if useSGP and connector.isInMainland(): # 如果是国服就优先尝试 SGP try: token = await connector.getSGPtoken()