From e43f2ce67af4d38c2f6d99174effc3db4a47e07f Mon Sep 17 00:00:00 2001 From: laoyang Date: Tue, 3 Nov 2026 07:31:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E4=B8=A4=E5=A4=84=E9=9D=99=E9=BB=98=E5=A4=B1?= =?UTF-8?q?=E6=95=88=EF=BC=88=E6=B5=8B=E8=AF=95=E6=9A=B4=E9=9C=B2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 症状:notify_log 全表为空 → 用户报「完全没发邮件」,后台查不到任何线索。 1. 前 4 个前置判断(开关/收件人/自己回自己/冷却)直接 return 不写日志, 等于「为什么没发」完全无痕。改为任何退出路径都写 notify_log, 并带上可读原因。 2. new 事件(新反馈通知管理员)收件人只取 admin_email,该值为空时整条 通知静默失效 —— 管理员永远收不到新反馈信,界面也无任何提示。 改为回落 smtp.user / smtp.from;后台勾了「通知管理员」却没填邮箱时 当场显示警告。 验证:走 fb_notify_event 全事件测试,6 个事件全部写日志、new 能送达。 --- admin.php | 17 +++++++++++++++-- lib/mailer.php | 29 ++++++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/admin.php b/admin.php index f21134e..930ac77 100644 --- a/admin.php +++ b/admin.php @@ -1326,8 +1326,21 @@ fb_layout_head('管理后台', ['robots' => 'noindex,nofollow']);

通知规则

- + +