fix 好大、岛签到

This commit is contained in:
thsrite 2023-07-20 19:37:19 +08:00
parent 95d3c96aea
commit e9654ec2e1
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class CHDBits(_ISiteSigninHandler):
否则随机
"""
# 匹配的站点Url每一个实现类都需要设置为自己的站点Url
site_url = "chdbits.co"
site_url = "ptchdbits.co"
# 已签到
_sign_regex = ['今天已经签过到了']
@ -49,7 +49,7 @@ class CHDBits(_ISiteSigninHandler):
render = site_info.get("render")
# 判断今日是否已签到
html_text = self.get_page_source(url='https://chdbits.co/bakatest.php',
html_text = self.get_page_source(url='https://ptchdbits.co/bakatest.php',
cookie=site_cookie,
ua=ua,
proxy=proxy,
@ -126,7 +126,7 @@ class CHDBits(_ISiteSigninHandler):
sign_res = RequestUtils(cookies=site_cookie,
ua=ua,
proxies=settings.PROXY if proxy else None
).post_res(url='https://chdbits.co/bakatest.php', data=data)
).post_res(url='https://ptchdbits.co/bakatest.php', data=data)
if not sign_res or sign_res.status_code != 200:
logger.error(f"{site} 签到失败,签到接口请求失败")
return False, '签到失败,签到接口请求失败'

View File

@ -15,7 +15,7 @@ class HDArea(_ISiteSigninHandler):
"""
# 匹配的站点Url每一个实现类都需要设置为自己的站点Url
site_url = "hdarea.co"
site_url = "hdarea.club"
# 签到成功
_success_text = "此次签到您获得"
@ -48,7 +48,7 @@ class HDArea(_ISiteSigninHandler):
html_res = RequestUtils(cookies=site_cookie,
ua=ua,
proxies=proxies
).post_res(url="https://www.hdarea.co/sign_in.php", data=data)
).post_res(url="https://www.hdarea.club/sign_in.php", data=data)
if not html_res or html_res.status_code != 200:
logger.error(f"{site} 签到失败,请检查站点连通性")
return False, '签到失败,请检查站点连通性'