From 9c2594c49896b110e60a8d346aa11496188a2214 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 18 Aug 2023 14:15:06 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=BB=A7=E7=BB=AD=E6=90=9E?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv/group_cv/group.go | 2 +- domain/model/group_m/factory.go | 2 +- domain/model/group_m/room.go | 6 +++--- domain/model/tim_m/user.go | 2 +- route/group_r/group_info.go | 2 +- route/group_r/group_list.go | 10 +++++----- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cv/group_cv/group.go b/cv/group_cv/group.go index d715377..cd04da4 100644 --- a/cv/group_cv/group.go +++ b/cv/group_cv/group.go @@ -321,7 +321,7 @@ func BuildJoinedGroupInfo(myService *domain.Service, myUserId uint64, originGrou if err != nil { return nil, 0, err } - model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) + //model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) // 排序优先级V8.0版本 sort.Slice(groupIds, func(i, j int) bool { diff --git a/domain/model/group_m/factory.go b/domain/model/group_m/factory.go index 7313a09..9be1191 100644 --- a/domain/model/group_m/factory.go +++ b/domain/model/group_m/factory.go @@ -253,7 +253,7 @@ func BatchGetAllMicUser(model *domain.Model, groupIds []string) (map[string][]my if err != nil { return nil, err } - model.Log.Infof("BatchGetAllMicUser redis return size = %d, mics: %v", len(mics), mics) + //model.Log.Infof("BatchGetAllMicUser redis return size = %d, mics: %v", len(mics), mics) if len(mics) >= len(groupIds) { for i, g := range groupIds { diff --git a/domain/model/group_m/room.go b/domain/model/group_m/room.go index 5b7d8a3..67604e3 100644 --- a/domain/model/group_m/room.go +++ b/domain/model/group_m/room.go @@ -333,7 +333,7 @@ func RoomLivingExistsGroup(model *domain.Model) (map[string]map[uint64]struct{}, if err != nil { return nil, myerr.WrapErr(err) } - model.Log.Infof("group_room_living RoomLivingExistsGroup groupUserIdstrs:%v", groupUserIdstrs) + //model.Log.Infof("group_room_living RoomLivingExistsGroup groupUserIdstrs:%v", groupUserIdstrs) groupGroup := map[string]map[uint64]struct{}{} for i, _ := range groupUserIdstrs { tempGroupUid, userId := analysisMemberStr(groupUserIdstrs[i]) @@ -429,7 +429,7 @@ func BatchGetRoomVisitCount(logE *logrus.Entry, groupIds []string) (map[string]i if err != nil { return nil, err } - logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) + //logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) visitCount := make(map[string]int64) for _, groupId := range groupIds { @@ -464,7 +464,7 @@ func BatchGetRoomVisitCountList(logE *logrus.Entry, groupIds []string) (map[stri if err != nil { return nil, nil, err } - logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) + //logE.Infof("MGetRoomVisitCount:%v", roomVisitCount) res := make([]*RoomVisit, 0, len(groupIds)) visitCount := make(map[string]int64) diff --git a/domain/model/tim_m/user.go b/domain/model/tim_m/user.go index 70d27ff..16e05cc 100644 --- a/domain/model/tim_m/user.go +++ b/domain/model/tim_m/user.go @@ -325,7 +325,7 @@ func GetOnlineStatus(model *domain.Model, extIds []string) (map[string]uint, err model.Log.Warnf("getOnlineStatus redis failed") left = extIds } else { - model.Log.Infof("getOnlineStatus redis return size = %d: %v", len(r), r) + //model.Log.Infof("getOnlineStatus redis return size = %d: %v", len(r), r) if len(r) >= len(extIds) { for i, e := range extIds { diff --git a/route/group_r/group_info.go b/route/group_r/group_info.go index a71b61b..8cf0273 100644 --- a/route/group_r/group_info.go +++ b/route/group_r/group_info.go @@ -211,7 +211,7 @@ func GetTheirGroups(c *gin.Context) (*mycontext.MyContext, error) { if err != nil { return myContext, err } - model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) + //model.Log.Infof("BuildJoinedGroupInfo, roomEnterTime: %v", roomEnterTime) // 正在进行的游戏 games := game_m.GetNotEndGamesMap(model) diff --git a/route/group_r/group_list.go b/route/group_r/group_list.go index 0b12842..543c973 100644 --- a/route/group_r/group_list.go +++ b/route/group_r/group_list.go @@ -202,7 +202,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { } } } - model.Log.Infof("GetPopularGroups, countryScore[*]: %v,cost:%v", countryScore, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups, countryScore[*]: %v,cost:%v", countryScore, time.Now().Sub(start)) now := time.Now() bTime := now.Add(-time.Minute * 30) @@ -211,7 +211,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { if err != nil { return myContext, err } - model.Log.Infof("GetPopularGroups, diamonds in 30 mins: %v,cost:%v", diamonds, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups, diamonds in 30 mins: %v,cost:%v", diamonds, time.Now().Sub(start)) visitCount, err := group_m.BatchGetRoomVisitCount(model.Log, groupIds) if err != nil { @@ -275,7 +275,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { // ":" + strconv.FormatUint(diamonds[g], 10) + ":" + strconv.Itoa(int(visitCount[g])) } total := len(hotGroupList) - model.Log.Infof("GetPopularGroups: hotGroupList size = %d,cost:%v", total, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups: hotGroupList size = %d,cost:%v", total, time.Now().Sub(start)) result := make([]group_cv.PopularGroupInfo, 0) @@ -309,7 +309,7 @@ func GetPopularGroups(c *gin.Context) (*mycontext.MyContext, error) { //if err != nil { // return myContext, err //} - model.Log.Infof("GetPopularGroups: final start = %d, end = %d, groupIds %v,cost:%v", beginPos, endPos, groupIds, time.Now().Sub(start)) + //model.Log.Infof("GetPopularGroups: final start = %d, end = %d, groupIds %v,cost:%v", beginPos, endPos, groupIds, time.Now().Sub(start)) roomCount, err := group_m.BatchGetRoomCount(model, groupIds) if err != nil { @@ -1258,7 +1258,7 @@ func GetGroupByCountry(c *gin.Context) (*mycontext.MyContext, error) { endTime := time.Now() model.Log.Infof("GetGroupByCountry: candidates size = %d, takes %d ms banned = %d, visitCount size = %d", len(groups), endTime.Sub(beginTime).Milliseconds(), banCount, len(visitCount)) - model.Log.Infof("GetGroupByCountry cost1:%v", time.Now().Sub(beginTime)) + //model.Log.Infof("GetGroupByCountry cost1:%v", time.Now().Sub(beginTime)) hotGroupList := make([]*group_m.GroupInfo, 0) -- 2.22.0