后台关闭切换主题功能

This commit is contained in:
naiba
2024-02-27 21:05:39 +08:00
parent 6fa149519d
commit da6a3463ed
8 changed files with 40 additions and 6 deletions

View File

@@ -858,8 +858,9 @@ type settingForm struct {
GRPCHost string
Cover uint8
EnableIPChangeNotification string
EnablePlainIPInNotification string
EnableIPChangeNotification string
EnablePlainIPInNotification string
DisableSwitchTemplateInFrontend string
}
func (ma *memberAPI) updateSetting(c *gin.Context) {
@@ -907,6 +908,7 @@ func (ma *memberAPI) updateSetting(c *gin.Context) {
singleton.Conf.Language = sf.Language
singleton.Conf.EnableIPChangeNotification = sf.EnableIPChangeNotification == "on"
singleton.Conf.EnablePlainIPInNotification = sf.EnablePlainIPInNotification == "on"
singleton.Conf.DisableSwitchTemplateInFrontend = sf.DisableSwitchTemplateInFrontend == "on"
singleton.Conf.Cover = sf.Cover
singleton.Conf.GRPCHost = sf.GRPCHost
singleton.Conf.IgnoredIPNotification = sf.IgnoredIPNotification