From 5c1e972feb35387278851f65c8f1edc560575a39 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 20 Jan 2025 16:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=5F=5Finit=5F=5F.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/webpush/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/webpush/__init__.py b/app/modules/webpush/__init__.py index e5675703..bb843490 100644 --- a/app/modules/webpush/__init__.py +++ b/app/modules/webpush/__init__.py @@ -68,7 +68,7 @@ class WebPushModule(_ModuleBase, _MessageBase): webpush_users = conf.config.get("WEBPUSH_USERNAME") or "" 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 if not message.title and not message.text: logger.warn("标题和内容不能同时为空")