by Robin at 20240426

This commit is contained in:
Leufolium 2024-04-26 23:01:55 +08:00
parent 2ac68c47c7
commit 7cb60f01b6
2 changed files with 18 additions and 2 deletions

View File

@ -1003,6 +1003,7 @@ func (m *Mongo) ClearLoginWrongPswdTimes(ctx *gin.Context) error {
up := qmgo.M{
"$set": qmgo.M{
"wrong_pswd_times": int64(0),
"is_locked": int64(0),
},
}

View File

@ -2884,9 +2884,24 @@ func (s *Service) ApiGetZoneMomentStatisticsByCreaterMid(ctx *gin.Context, req *
paidLimit = dailyLimit
}
// 总发帖次数统计
totalFreeCount, err := _DefaultZoneMoment.OpCountByMidAndCType(ctx, req.BaseRequest.Mid, consts.ZoneMomentCType_Free)
if err != nil {
logger.Error("_DefaultZoneMoment OpCountByMidAndCType fail, req: %v, err: %v", util.ToJson(req), err)
ec = errcode.ErrCodeZoneMomentSrvFail
return
}
totalPaidCount, err := _DefaultZoneMoment.OpCountByMidAndCType(ctx, req.BaseRequest.Mid, consts.ZoneMomentCType_Paid)
if err != nil {
logger.Error("_DefaultZoneMoment OpCountByMidAndCType fail, req: %v, err: %v", util.ToJson(req), err)
ec = errcode.ErrCodeZoneMomentSrvFail
return
}
result = &zonemomentproto.ApiListStatisticsByCreaterMidData{
FreeCount: freeCount,
PaidCount: paidCount,
FreeCount: totalFreeCount,
PaidCount: totalPaidCount,
RejectedCount: rejectedCount,
PaidLimit: paidLimit,
}