pull/344/head
wangchuxiao 2 years ago
parent 4411ba3482
commit f384bb2aff

@ -311,7 +311,7 @@ func (s *adminCMSServer) GetActiveGroup(_ context.Context, req *pbAdminCMS.GetAc
return resp, nil
}
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "time: ", fromTime, toTime)
toTime.AddDate(0, 0, 1)
toTime = toTime.AddDate(0, 0, 1)
activeGroups, err := imdb.GetActiveGroups(fromTime, toTime, 12)
if err != nil {
log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetActiveGroups failed", err.Error())
@ -341,7 +341,7 @@ func (s *adminCMSServer) GetActiveUser(_ context.Context, req *pbAdminCMS.GetAct
resp.CommonResp.ErrMsg = err.Error()
return resp, nil
}
toTime.AddDate(0, 0, 1)
toTime = toTime.AddDate(0, 0, 1)
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), "time: ", fromTime, toTime)
activeUsers, err := imdb.GetActiveUsers(fromTime, toTime, 12)
if err != nil {

Loading…
Cancel
Save