mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix wechat
This commit is contained in:
@@ -169,8 +169,8 @@ class WeChat:
|
|||||||
:param link: 跳转链接
|
:param link: 跳转链接
|
||||||
:return: 发送状态,错误信息
|
:return: 发送状态,错误信息
|
||||||
"""
|
"""
|
||||||
if not title:
|
if not title and not text:
|
||||||
logger.error("消息标题不能为空")
|
logger.error("消息标题和内容不能都为空")
|
||||||
return False
|
return False
|
||||||
if text:
|
if text:
|
||||||
formatted_text = text.replace("\n\n", "\n")
|
formatted_text = text.replace("\n\n", "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user