diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 2db890f4..dd9252e1 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -1005,6 +1005,7 @@ func (m *Mongo) ClearLoginWrongPswdTimes(ctx *gin.Context) error { up := qmgo.M{ "$set": qmgo.M{ "wrong_pswd_times": int64(0), + "is_locked": int64(0), }, } diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 359a3eb8..f38cb4b5 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -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, }