Merge pull request 'by Robin at 20240427' (#358) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/358
This commit is contained in:
commit
a008fa9e86
|
@ -2645,6 +2645,16 @@ func (s *Service) ApiDeleteZoneMoment(ctx *gin.Context, req *zonemomentproto.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 回退空间内统计总数
|
||||||
|
mediaCountInc := len(zonemoment.MediaComp.GetImageIds())
|
||||||
|
videoCountInc := len(zonemoment.MediaComp.GetVideoIds())
|
||||||
|
err = _DefaultZone.RecordStatisticsById(ctx, zonemoment.GetZid(), -1, -int64(mediaCountInc), -int64(videoCountInc))
|
||||||
|
if err != nil {
|
||||||
|
logger.Error("RecordStatisticsById fail, req: %v, err: %v", util.ToJson(req), err)
|
||||||
|
ec = errcode.ErrCodeZoneSrvFail
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 回退每日发帖次数
|
// 回退每日发帖次数
|
||||||
totalIncr := int64(-1)
|
totalIncr := int64(-1)
|
||||||
_, err = _DefaultZoneMomentCreateTimes.OpGetAndUpdate(ctx, zone.GetMid(), totalIncr)
|
_, err = _DefaultZoneMomentCreateTimes.OpGetAndUpdate(ctx, zone.GetMid(), totalIncr)
|
||||||
|
|
Loading…
Reference in New Issue