删除数据上报逻辑
移除 pub/dataReport、reportser、srv_report、上报定时任务及 eventmod 事件表, 以及注册/登录/点赞/收藏/评论/解锁/订单/上下架等处的上报调用和 reportSdkConfig 配置下发。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,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"
|
||||
@@ -654,9 +653,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
|
||||
}
|
||||
|
||||
@@ -676,9 +672,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
|
||||
}
|
||||
|
||||
@@ -728,9 +721,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
|
||||
}
|
||||
|
||||
@@ -750,9 +740,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
|
||||
}
|
||||
|
||||
@@ -1014,7 +1001,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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user