feat: dataReport 增加 disabled 开关,默认关闭埋点与上报

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 21:37:25 +08:00
co-authored by Claude Opus 4.7
parent d38138aeda
commit aad2f60705
10 changed files with 35 additions and 8 deletions
+3 -2
View File
@@ -81,8 +81,9 @@ func Run(args []string) {
initData()
initSeoPush()
dataReport.Init(dataReport.Config{
ApiUrl: webg.Conf.DataReport.Url,
RunMod: webg.Conf.RunMod,
ApiUrl: webg.Conf.DataReport.Url,
RunMod: webg.Conf.RunMod,
Disabled: webg.Conf.DataReport.Disabled,
})
initHttpServer()