by Robin at 20240308,up op refreshes bottom flag
This commit is contained in:
parent
5f253ab9d3
commit
30bcd59226
|
@ -720,9 +720,15 @@ func (s *Service) utilGetUpUserVisitOffset(ctx *gin.Context, mid int64, recommli
|
|||
return nil, qmgo.ErrNoSuchDocuments
|
||||
} else {
|
||||
nowoffset := (uservisitoffset.StreamerRecommOffset + consts.StreamerRecommThroughput) % recommlistLength
|
||||
// 向上操作固定清掉触底标志
|
||||
var bottomFlagPtr *int64 = nil
|
||||
if uservisitoffset.GetBottomFlag() == 1 {
|
||||
bottomFlagPtr = goproto.Int64(0)
|
||||
}
|
||||
err = _DefaultUserVisitOffset.OpUpdate(ctx, &dbstruct.UserVisitOffset{
|
||||
Id: uservisitoffset.Id,
|
||||
StreamerRecommOffset: nowoffset,
|
||||
BottomFlag: bottomFlagPtr,
|
||||
Ver: uservisitoffset.Ver,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue