This commit is contained in:
jxxghp 2024-04-11 19:48:19 +08:00
parent 17e1e6b49b
commit 66af2de416

View File

@ -124,13 +124,12 @@ class SiteChain(ChainBase):
return True, f"连接成功,但更新状态失败"
return False, "Cookie已失效"
@staticmethod
def __ptlsp_test(site: Site) -> Tuple[bool, str]:
def __ptlsp_test(self, site: Site) -> Tuple[bool, str]:
"""
判断站点是否已经登陆ptlsp
"""
site.url = f"{site.url}index.php"
return __test(site)
return self.__test(site)
@staticmethod
def __parse_favicon(url: str, cookie: str, ua: str) -> Tuple[str, Optional[str]]: