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)
model.Conf.System.GoogleAnalytics = googleAnalytics
model.Conf.System.DisableGoogleAnalytics = googleAnalytics
model.Conf.Save()
}

View File

@ -38,9 +38,9 @@ type System struct {
FixedPort bool `json:"fixedPort"` // 是否使用固定端口 6806
NetworkProxy *NetworkProxy `json:"networkProxy"`
UploadErrLog bool `json:"uploadErrLog"`
GoogleAnalytics bool `json:"googleAnalytics"`
DownloadInstallPkg bool `json:"downloadInstallPkg"`
UploadErrLog bool `json:"uploadErrLog"`
DisableGoogleAnalytics bool `json:"disableGoogleAnalytics"`
DownloadInstallPkg bool `json:"downloadInstallPkg"`
}
func NewSystem() *System {

View File

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