fix #2101 1ptba签到增加index.php,认证及种子浏览有带具体的URI,如有问题需要站点放开。
This commit is contained in:
parent
363318f4f0
commit
e1e2779e48
@ -52,7 +52,8 @@ class SiteChain(ChainBase):
|
|||||||
"zhuque.in": self.__zhuque_test,
|
"zhuque.in": self.__zhuque_test,
|
||||||
"m-team.io": self.__mteam_test,
|
"m-team.io": self.__mteam_test,
|
||||||
"m-team.cc": 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:
|
def is_special_site(self, domain: str) -> bool:
|
||||||
@ -131,9 +132,9 @@ class SiteChain(ChainBase):
|
|||||||
return True, f"连接成功,但更新状态失败"
|
return True, f"连接成功,但更新状态失败"
|
||||||
return False, "鉴权已过期或无效"
|
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"
|
site.url = f"{site.url}index.php"
|
||||||
return self.__test(site)
|
return self.__test(site)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user