mirror of
https://github.com/d0zingcat/MoviePilot-Plugins.git
synced 2026-05-19 15:09:29 +00:00
fix AutoSignIn
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"AutoSignIn": {
|
||||
"name": "站点自动签到",
|
||||
"description": "自动模拟登录站点、签到。",
|
||||
"version": "1.6",
|
||||
"version": "1.7",
|
||||
"icon": "signin.png",
|
||||
"author": "thsrite",
|
||||
"level": 2
|
||||
|
||||
@@ -37,7 +37,7 @@ class AutoSignIn(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "signin.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.6"
|
||||
plugin_version = "1.7"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
|
||||
@@ -27,7 +27,7 @@ class MTorrent(_ISiteSigninHandler):
|
||||
|
||||
def signin(self, site_info: CommentedMap) -> Tuple[bool, str]:
|
||||
"""
|
||||
执行签到操作,馒头实际没有签到,访问一下用户详情页面即可
|
||||
执行签到操作,馒头实际没有签到,非仿真模式下需要更新访问时间
|
||||
:param site_info: 站点信息,含有站点Url、站点Cookie、UA等信息
|
||||
:return: 签到结果信息
|
||||
"""
|
||||
@@ -56,7 +56,7 @@ class MTorrent(_ISiteSigninHandler):
|
||||
ua=ua,
|
||||
timeout=60,
|
||||
proxies=settings.PROXY if proxy else None
|
||||
).post_res(url=urljoin(url, "api/member/profile"))
|
||||
).post_res(url=urljoin(url, "api/member/updateLastBrowse"))
|
||||
if res:
|
||||
logger.info(f'【{site}】模拟登录成功')
|
||||
return True, f'模拟登录成功'
|
||||
|
||||
Reference in New Issue
Block a user