mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-08 08:57:09 +08:00
更新 __init__.py
This commit is contained in:
@@ -68,7 +68,7 @@ class WebPushModule(_ModuleBase, _MessageBase):
|
|||||||
webpush_users = conf.config.get("WEBPUSH_USERNAME") or ""
|
webpush_users = conf.config.get("WEBPUSH_USERNAME") or ""
|
||||||
if webpush_users:
|
if webpush_users:
|
||||||
# 设定了接收用户时,非该用户的消息不接收
|
# 设定了接收用户时,非该用户的消息不接收
|
||||||
if not message.userid or message.userid not in webpush_users.split(","):
|
if not message.username or message.username not in webpush_users.split(","):
|
||||||
continue
|
continue
|
||||||
if not message.title and not message.text:
|
if not message.title and not message.text:
|
||||||
logger.warn("标题和内容不能同时为空")
|
logger.warn("标题和内容不能同时为空")
|
||||||
|
|||||||
Reference in New Issue
Block a user