This commit is contained in:
Liang Ding 2022-10-30 01:02:14 +08:00
parent 710e703867
commit 0211e15fc9
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
3 changed files with 5 additions and 5 deletions

View File

@ -312,7 +312,7 @@ func setGoogleAnalytics(c *gin.Context) {
} }
googleAnalytics := arg["googleAnalytics"].(bool) googleAnalytics := arg["googleAnalytics"].(bool)
model.Conf.System.GoogleAnalytics = googleAnalytics model.Conf.System.DisableGoogleAnalytics = googleAnalytics
model.Conf.Save() model.Conf.Save()
} }

View File

@ -39,7 +39,7 @@ type System struct {
NetworkProxy *NetworkProxy `json:"networkProxy"` NetworkProxy *NetworkProxy `json:"networkProxy"`
UploadErrLog bool `json:"uploadErrLog"` UploadErrLog bool `json:"uploadErrLog"`
GoogleAnalytics bool `json:"googleAnalytics"` DisableGoogleAnalytics bool `json:"disableGoogleAnalytics"`
DownloadInstallPkg bool `json:"downloadInstallPkg"` DownloadInstallPkg bool `json:"downloadInstallPkg"`
} }

View File

@ -292,7 +292,7 @@ func InitConf() {
}) })
} }
if !Conf.System.GoogleAnalytics { if Conf.System.DisableGoogleAnalytics {
logging.LogInfof("user has disabled [Google Analytics]") logging.LogInfof("user has disabled [Google Analytics]")
} }