优化卡片

This commit is contained in:
hero920103 committed 2026-11-05 01:08:55 +08:00
1 parent e34543465a
commit 8acbe732ff
8 files changed
+181 -21

No files matched your search

+8 -6
View File
@@ -287,7 +287,7 @@ func (c *BackendReminderController) CreateReminder() {
for _, ch := range p.RemindChannels {
ch = strings.ToUpper(strings.TrimSpace(ch))
if ch != "SMS" && ch != "EMAIL" && ch != "BARK" && ch != "SITE_MSG" {
if ch != "SMS" && ch != "EMAIL" && ch != "BARK" && ch != "SITE_MSG" && ch != "WECHAT_MP" && ch != "WECHAT_MINI" {
continue
}
@@ -426,7 +426,7 @@ func (c *BackendReminderController) UpdateReminder() {
for _, ch := range p.RemindChannels {
ch = strings.ToUpper(strings.TrimSpace(ch))
if ch != "SMS" && ch != "EMAIL" && ch != "BARK" && ch != "SITE_MSG" {
if ch != "SMS" && ch != "EMAIL" && ch != "BARK" && ch != "SITE_MSG" && ch != "WECHAT_MP" && ch != "WECHAT_MINI" {
continue
}
@@ -691,10 +691,12 @@ func (c *BackendReminderController) TestReminder() {
}
senders := map[string]services.ReminderSender{
"SMS": &services.SMSSender{},
"EMAIL": &services.EmailSender{},
"BARK": &services.BarkSender{},
"SITE_MSG": &services.SiteMsgSender{},
"SMS": &services.SMSSender{},
"EMAIL": &services.EmailSender{},
"BARK": &services.BarkSender{},
"SITE_MSG": &services.SiteMsgSender{},
"WECHAT_MP": &services.WechatMpSender{},
"WECHAT_MINI": &services.WechatMiniSender{},
}
type TestResult struct {