feat 站点自动登录插件

This commit is contained in:
thsrite
2023-10-20 12:54:16 +08:00
parent f0593996a1
commit b3733ed9ed
20 changed files with 273 additions and 35 deletions

View File

@ -43,8 +43,12 @@ class PTerClub(_ISiteSigninHandler):
proxy=proxy,
render=render)
if not html_text:
logger.error(f"{site} 签到失败,签到接口请求失败")
return False, '签到失败,请检查cookie是否失效'
logger.error(f"{site} 签到失败,请检查站点连通性")
return False, '签到失败,请检查站点连通性'
if "login.php" in html_text:
logger.error(f"{site} 签到失败Cookie已失效")
return False, '签到失败Cookie已失效'
try:
sign_dict = json.loads(html_text)
except Exception as e: