Merge pull request 'by Robin at 20240426' (#356) from feat-IRONFANS-70 into test
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/356
This commit is contained in:
commit
7dcc739c86
|
@ -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),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue