This commit is contained in:
tamakyi
2026-10-19 03:01:17 +08:00
parent dba991aa9d
commit 899b6d7f32
3 changed files with 43 additions and 6 deletions
+4 -1
View File
@@ -165,7 +165,10 @@ type RestrictionNotice struct {
// SendRestrictionNoticeMail 告知箱主「你的提问箱已被限制」。
func SendRestrictionNoticeMail(n RestrictionNotice) error {
params := map[string]string{
"heading": n.Heading,
"heading": n.Heading,
// time 由邮件包统一注入:调用方(CLI / 未来可能的自动流程)不必各自拼时间,
// 也保证与其他通知邮件(question-reported / abuse-alert)的头部格式一致。
"time": time.Now().Format("2006-01-02 15:04:05"),
"greeting": n.Greeting,
"body": n.Body,
"note": n.Note,