Commit 5522be36 authored by hujiebin's avatar hujiebin

feat:去掉明显日志

parent 1115bc9c
...@@ -279,7 +279,7 @@ func RoomLivingExistsUserId(groupUid string) ([]uint64, error) { ...@@ -279,7 +279,7 @@ func RoomLivingExistsUserId(groupUid string) ([]uint64, error) {
if err != nil { if err != nil {
return nil, myerr.WrapErr(err) return nil, myerr.WrapErr(err)
} }
mylogrus.MyLog.Infof("group_room_living RoomLivingExistsUserId groupUserIdstrs:%v", groupUserIdstrs) //mylogrus.MyLog.Infof("group_room_living RoomLivingExistsUserId groupUserIdstrs:%v", groupUserIdstrs)
userIds := make([]uint64, 0, len(groupUserIdstrs)) userIds := make([]uint64, 0, len(groupUserIdstrs))
for i, _ := range groupUserIdstrs { for i, _ := range groupUserIdstrs {
tempGroupUid, userId := analysisMemberStr(groupUserIdstrs[i]) tempGroupUid, userId := analysisMemberStr(groupUserIdstrs[i])
......
...@@ -94,10 +94,7 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User ...@@ -94,10 +94,7 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User
} }
var rows []User var rows []User
start := 0 start := 0
for end <= len(userIds) { for start < len(userIds) {
if end > len(userIds) {
end = len(userIds)
}
tmp, err := GetUsersByIds(model, userIds[start:end]) tmp, err := GetUsersByIds(model, userIds[start:end])
if err != nil { if err != nil {
return result, err return result, err
...@@ -106,7 +103,10 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User ...@@ -106,7 +103,10 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User
} }
start += 500 start += 500
end += 500 end += 500
model.Log.Infof("GetUserMapByIds start:%v-end:%v", start, end) if end > len(userIds) {
end = len(userIds)
}
//model.Log.Infof("GetUserMapByIds start:%v-end:%v", start, end)
} }
for _, i := range rows { for _, i := range rows {
result[i.ID] = i result[i.ID] = i
......
...@@ -2,7 +2,6 @@ package user_m ...@@ -2,7 +2,6 @@ package user_m
import ( import (
"git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/mylogrus"
"git.hilo.cn/hilo-common/resource/mysql" "git.hilo.cn/hilo-common/resource/mysql"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
...@@ -85,7 +84,7 @@ func BatchGetVips(userIds []uint64) (map[uint64]*int64, error) { ...@@ -85,7 +84,7 @@ func BatchGetVips(userIds []uint64) (map[uint64]*int64, error) {
} }
start += 500 start += 500
end += 500 end += 500
mylogrus.MyLog.Infof("BatchGetVips start:%v-end:%v", start, end) //mylogrus.MyLog.Infof("BatchGetVips start:%v-end:%v", start, end)
} }
for _, i := range userIds { for _, i := range userIds {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment