From 48c25c40e47df9584867a03b4dd22655ebf42483 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 20 Nov 2025 16:51:43 +0800 Subject: [PATCH] fix wechat --- app/modules/wechat/wechat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/wechat/wechat.py b/app/modules/wechat/wechat.py index a4c49494..93c286a6 100644 --- a/app/modules/wechat/wechat.py +++ b/app/modules/wechat/wechat.py @@ -169,8 +169,8 @@ class WeChat: :param link: 跳转链接 :return: 发送状态,错误信息 """ - if not title: - logger.error("消息标题不能为空") + if not title and not text: + logger.error("消息标题和内容不能都为空") return False if text: formatted_text = text.replace("\n\n", "\n")