diff --git a/package.json b/package.json index 8d414ea..9efe6ad 100644 --- a/package.json +++ b/package.json @@ -299,7 +299,7 @@ "BarkMsg": { "name": "Bark消息推送", "description": "支持使用Bark发送消息通知。", - "version": "1.0", + "version": "1.1", "icon": "bark.webp", "color": "#FF3B30", "author": "jxxghp", @@ -308,7 +308,7 @@ "IyuuMsg": { "name": "IYUU消息推送", "description": "支持使用IYUU发送消息通知。", - "version": "1.0", + "version": "1.1", "icon": "iyuu.png", "color": "#C9221B", "author": "jxxghp", @@ -317,7 +317,7 @@ "PushDeerMsg": { "name": "PushDeer消息推送", "description": "支持使用PushDeer发送消息通知。", - "version": "1.0", + "version": "1.1", "icon": "pushdeer.png", "color": "#FFFFFF", "author": "jxxghp", diff --git a/plugins/barkmsg/__init__.py b/plugins/barkmsg/__init__.py index f64ff63..3f87e2f 100644 --- a/plugins/barkmsg/__init__.py +++ b/plugins/barkmsg/__init__.py @@ -18,7 +18,7 @@ class BarkMsg(_PluginBase): # 主题色 plugin_color = "#FF3B30" # 插件版本 - plugin_version = "1.0" + plugin_version = "1.1" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -195,6 +195,10 @@ class BarkMsg(_PluginBase): return msg_body = event.event_data + # 渠道 + channel = msg_body.get("channel") + if channel: + return # 类型 msg_type: NotificationType = msg_body.get("type") # 标题 diff --git a/plugins/iyuumsg/__init__.py b/plugins/iyuumsg/__init__.py index 1108c14..a5c4de9 100644 --- a/plugins/iyuumsg/__init__.py +++ b/plugins/iyuumsg/__init__.py @@ -18,7 +18,7 @@ class IyuuMsg(_PluginBase): # 主题色 plugin_color = "#C9221B" # 插件版本 - plugin_version = "1.0" + plugin_version = "1.1" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -154,6 +154,10 @@ class IyuuMsg(_PluginBase): return msg_body = event.event_data + # 渠道 + channel = msg_body.get("channel") + if channel: + return # 类型 msg_type: NotificationType = msg_body.get("type") # 标题 diff --git a/plugins/pushdeermsg/__init__.py b/plugins/pushdeermsg/__init__.py index 72a3d95..32f972b 100644 --- a/plugins/pushdeermsg/__init__.py +++ b/plugins/pushdeermsg/__init__.py @@ -18,7 +18,7 @@ class PushDeerMsg(_PluginBase): # 主题色 plugin_color = "#FFFFFF" # 插件版本 - plugin_version = "1.0" + plugin_version = "1.1" # 插件作者 plugin_author = "jxxghp" # 作者主页 @@ -175,6 +175,10 @@ class PushDeerMsg(_PluginBase): return msg_body = event.event_data + # 渠道 + channel = msg_body.get("channel") + if channel: + return # 类型 msg_type: NotificationType = msg_body.get("type") # 标题