feat: dataReport 增加 disabled 开关,默认关闭埋点与上报
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -428,6 +428,9 @@ func md5String(input string) string {
|
||||
}
|
||||
|
||||
func insertEvent(event dataReport.CommonField) {
|
||||
if !dataReport.Enabled() {
|
||||
return
|
||||
}
|
||||
b, _ := json.Marshal(event)
|
||||
if err := eventmod.InsertOneEvent(context.Background(), &eventmod.Event{
|
||||
EventId: event.EventID,
|
||||
|
||||
Reference in New Issue
Block a user