修复空签到失败

This commit is contained in:
kongfeiquan
2024-12-17 11:11:34 +08:00
parent 9a30e08bd4
commit a869de1cc0
6 changed files with 11 additions and 5 deletions

View File

@@ -3,11 +3,12 @@
"name": "站点自动签到",
"description": "自动模拟登录、签到站点。",
"labels": "站点",
"version": "2.4.2",
"version": "2.4.3",
"icon": "signin.png",
"author": "thsrite",
"level": 2,
"history": {
"v2.4.3": "修复空签到失败问题",
"v2.4.2": "修复PT时间签到失败问题",
"v2.4.1": "修复海胆签到失败问题",
"v2.4": "适配m-team Api地址变化",

View File

@@ -33,11 +33,12 @@
"name": "站点自动签到",
"description": "自动模拟登录、签到站点。",
"labels": "站点",
"version": "2.5",
"version": "2.5.1",
"icon": "signin.png",
"author": "thsrite",
"level": 2,
"history": {
"v2.5.1": "修复空签到失败问题",
"v2.5": "MoviePilot V2 版本站点自动签到插件"
}
},
@@ -295,4 +296,4 @@
"v2.0": "兼容MoviePilot V2"
}
}
}
}

View File

@@ -37,7 +37,7 @@ class AutoSignIn(_PluginBase):
# 插件图标
plugin_icon = "signin.png"
# 插件版本
plugin_version = "2.5"
plugin_version = "2.5.1"
# 插件作者
plugin_author = "thsrite"
# 作者主页

View File

@@ -42,6 +42,7 @@ class HDSky(_ISiteSigninHandler):
ua = site_info.get("ua")
proxy = site_info.get("proxy")
render = site_info.get("render")
referer = site_info.get("url")
# 判断今日是否已签到
html_text = self.get_page_source(url='https://hdsky.me',
@@ -117,6 +118,7 @@ class HDSky(_ISiteSigninHandler):
# 访问签到链接
res = RequestUtils(cookies=site_cookie,
ua=ua,
referer=referer,
proxies=settings.PROXY if proxy else None
).post_res(url='https://hdsky.me/showup.php', data=data)
if res and res.status_code == 200:

View File

@@ -38,7 +38,7 @@ class AutoSignIn(_PluginBase):
# 插件图标
plugin_icon = "signin.png"
# 插件版本
plugin_version = "2.4.2"
plugin_version = "2.4.3"
# 插件作者
plugin_author = "thsrite"
# 作者主页

View File

@@ -42,6 +42,7 @@ class HDSky(_ISiteSigninHandler):
ua = site_info.get("ua")
proxy = site_info.get("proxy")
render = site_info.get("render")
referer = site_info.get("url")
# 判断今日是否已签到
html_text = self.get_page_source(url='https://hdsky.me',
@@ -117,6 +118,7 @@ class HDSky(_ISiteSigninHandler):
# 访问签到链接
res = RequestUtils(cookies=site_cookie,
ua=ua,
referer=referer,
proxies=settings.PROXY if proxy else None
).post_res(url='https://hdsky.me/showup.php', data=data)
if res and res.status_code == 200: