mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-05-13 17:39:41 +00:00
feat: separate expiry notification days and refactor TG bot interactive logic
This commit is contained in:
@@ -113,6 +113,12 @@ func updateConfig(c *gin.Context) (any, error) {
|
||||
singleton.Conf.CustomLinks = sf.CustomLinks
|
||||
singleton.Conf.TelegramBotToken = sf.TelegramBotToken
|
||||
singleton.Conf.TelegramAdminChatID = sf.TelegramAdminChatID
|
||||
singleton.Conf.SMTPServer = sf.SMTPServer
|
||||
singleton.Conf.SMTPUser = sf.SMTPUser
|
||||
singleton.Conf.SMTPPassword = sf.SMTPPassword
|
||||
singleton.Conf.AdminEmail = sf.AdminEmail
|
||||
singleton.Conf.DomainExpiryNotificationDays = sf.DomainExpiryNotificationDays
|
||||
singleton.Conf.ServerExpiryNotificationDays = sf.ServerExpiryNotificationDays
|
||||
|
||||
if err := singleton.Conf.Save(); err != nil {
|
||||
return nil, newGormError("%v", err)
|
||||
|
||||
Reference in New Issue
Block a user