fix v16
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user