fix #2101 1ptba签到增加index.php,认证及种子浏览有带具体的URI,如有问题需要站点放开。

This commit is contained in:
jxxghp 2024-05-19 09:42:22 +08:00
parent 363318f4f0
commit e1e2779e48

View File

@ -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)