mirror of
https://github.com/jxxghp/MoviePilot-Plugins.git
synced 2026-03-27 10:05:57 +00:00
fix 药丸签到失败发送通知
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
"InvitesSignin": {
|
||||
"name": "药丸签到",
|
||||
"description": "药丸论坛签到。",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"icon": "invites.png",
|
||||
"color": "#FFFFFF",
|
||||
"author": "thsrite",
|
||||
|
||||
@@ -22,7 +22,7 @@ class InvitesSignin(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "invites.png"
|
||||
# 插件版本
|
||||
plugin_version = "1.1"
|
||||
plugin_version = "1.2"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -141,6 +141,13 @@ class InvitesSignin(_PluginBase):
|
||||
|
||||
if not res or res.status_code != 200:
|
||||
logger.error("药丸签到失败")
|
||||
|
||||
# 发送通知
|
||||
if self._notify:
|
||||
self.post_message(
|
||||
mtype=NotificationType.SiteMessage,
|
||||
title="【药丸签到任务完成】",
|
||||
text="签到失败,请检查cookie是否失效")
|
||||
return
|
||||
|
||||
sign_dict = json.loads(res.text)
|
||||
|
||||
Reference in New Issue
Block a user