保留初始化通知配置并保护新通知凭据

This commit is contained in:
xuans committed 2026-09-16 19:19:24 +08:00
1 parent efb405ea11
commit 3d1afab22e
7 files changed
+458 -23

No files matched your search

+1 -1
View File
@@ -174,7 +174,7 @@ func Apply(cfg *config.Config, input Input) error {
cfg.Notification.RetryCount = input.EmailRetryCount
}
if input.EmailRetryIntervalsSecs != nil {
cfg.Notification.RetryIntervalsSecs = append([]int(nil), input.EmailRetryIntervalsSecs...)
cfg.Notification.RetryIntervalsSecs = append([]int{}, input.EmailRetryIntervalsSecs...)
}
cfg.Notification.Recipients = cleanRecipients(input.EmailRecipients)
if len(cfg.Notification.Recipients) == 0 {