Skip to content

Conversation

lilue
Copy link

@lilue lilue commented Sep 25, 2025

_has_webhook_configured 增加检查email配置

_has_webhook_configured 增加检查email配置
@lilue lilue changed the title Update main.py _has_webhook_configured 增加检查email配置 Sep 25, 2025
@lilue
Copy link
Author

lilue commented Sep 25, 2025

在只添加了邮箱通知配置的情况下,_send_notification_if_needed会判断通知参数未设置,跳过通知发送
elif CONFIG["ENABLE_NOTIFICATION"] and not has_webhook:
print("⚠️ 警告:通知功能已启用但未配置webhook URL,将跳过通知发送")

@sansan0
Copy link
Owner

sansan0 commented Sep 26, 2025

感谢你发现这个问题,不过方法名,日志,还有版本号都得调整了,不仅仅是一行代码的问题,晚点我来弄了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants