Remove 买点 (user acquisition tracking) subsystem

Delete the dataReport SDK, event storage model, and scheduled uploader,
along with the reportser/srv_report wrapper services and all ~20 Report*
call sites in business code. Also drop the ReportSDKConfig field from
the APP config response, the TrackerAppId helper, and the related
dataReport yaml config block.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 11:03:50 +08:00
co-authored by Claude Opus 4.7
parent 79ac89b458
commit 2a42621d8e
35 changed files with 12 additions and 2048 deletions
-14
View File
@@ -11,7 +11,6 @@ import (
"videoweb/app/api/proto"
"videoweb/app/service/configser"
"videoweb/app/service/playletcache"
"videoweb/app/service/reportser"
"videoweb/app/service/videoser"
"videoweb/pub/common/enum/redisconst"
"videoweb/pub/common/log"
@@ -920,9 +919,6 @@ func SetLike(ctx context.Context, userId int64, req *proto.PlayletLikeSetReq) (*
IsLike: operateStatusByFlag(*req.IsLike),
CountLike: countLike,
}
if changed {
reportser.ReportPlayletLike(ctx, userId, req.Id, resp.IsLike)
}
return resp, nil
}
@@ -942,9 +938,6 @@ func SetCollect(ctx context.Context, userId int64, req *proto.PlayletCollectSetR
IsCollect: operateStatusByFlag(*req.IsCollect),
CountCollect: countCollect,
}
if changed {
reportser.ReportPlayletCollect(ctx, userId, req.Id, resp.IsCollect)
}
return resp, nil
}
@@ -994,9 +987,6 @@ func SetChapterLike(ctx context.Context, userId int64, req *proto.PlayletChapter
IsLike: operateStatusByFlag(*req.IsLike),
CountLike: countLike,
}
if changed {
reportser.ReportPlayletChapterLike(ctx, userId, chapter.PlayletId, req.ChapterId, resp.IsLike)
}
return resp, nil
}
@@ -1016,9 +1006,6 @@ func SetChapterCollect(ctx context.Context, userId int64, req *proto.PlayletChap
IsCollect: operateStatusByFlag(*req.IsCollect),
CountCollect: countCollect,
}
if changed {
reportser.ReportPlayletChapterCollect(ctx, userId, chapter.PlayletId, req.ChapterId, resp.IsCollect)
}
return resp, nil
}
@@ -1282,7 +1269,6 @@ func UnlockChapter(ctx context.Context, userId int64, req *proto.PlayletChapterU
return nil, srvdef.New(srvdef.DBTransaction, "解锁失败,请稍后重试", "解锁失败,请稍后重试")
}
updatePlayletChapterUnlockStatsAsync(chapter.PlayletId, chapter.Id)
reportser.ReportPlayletUnlock(ctx, user, playlet, chapter, chapter.SingleCoins, user.Recharge, balanceAfter, orderNo)
return playletChapterUnlockResp(chapter, balanceAfter, -chapter.SingleCoins), nil
}