From e1e2779e48605d3c3f83ce0e5536ad901c6017a7 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 19 May 2024 09:42:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#2101=201ptba=E7=AD=BE=E5=88=B0=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0index.php=EF=BC=8C=E8=AE=A4=E8=AF=81=E5=8F=8A=E7=A7=8D?= =?UTF-8?q?=E5=AD=90=E6=B5=8F=E8=A7=88=E6=9C=89=E5=B8=A6=E5=85=B7=E4=BD=93?= =?UTF-8?q?=E7=9A=84URI=EF=BC=8C=E5=A6=82=E6=9C=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=AB=99=E7=82=B9=E6=94=BE=E5=BC=80=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/site.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/chain/site.py b/app/chain/site.py index 3fe4cd34..f6fd33a4 100644 --- a/app/chain/site.py +++ b/app/chain/site.py @@ -52,7 +52,8 @@ class SiteChain(ChainBase): "zhuque.in": self.__zhuque_test, "m-team.io": self.__mteam_test, "m-team.cc": self.__mteam_test, - "ptlsp.com": self.__ptlsp_test, + "ptlsp.com": self.__indexphp_test, + "1ptba.com": self.__indexphp_test, } def is_special_site(self, domain: str) -> bool: @@ -131,9 +132,9 @@ class SiteChain(ChainBase): return True, f"连接成功,但更新状态失败" return False, "鉴权已过期或无效" - def __ptlsp_test(self, site: Site) -> Tuple[bool, str]: + def __indexphp_test(self, site: Site) -> Tuple[bool, str]: """ - 判断站点是否已经登陆:ptlsp + 判断站点是否已经登陆:ptlsp/1ptba """ site.url = f"{site.url}index.php" return self.__test(site)