Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-group
Commits
5522be36
Commit
5522be36
authored
Aug 18, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:去掉明显日志
parent
1115bc9c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
room.go
domain/model/group_m/room.go
+1
-1
user.go
domain/model/user_m/user.go
+5
-5
vip.go
domain/model/user_m/vip.go
+1
-2
No files found.
domain/model/group_m/room.go
View file @
5522be36
...
...
@@ -279,7 +279,7 @@ func RoomLivingExistsUserId(groupUid string) ([]uint64, error) {
if
err
!=
nil
{
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
))
for
i
,
_
:=
range
groupUserIdstrs
{
tempGroupUid
,
userId
:=
analysisMemberStr
(
groupUserIdstrs
[
i
])
...
...
domain/model/user_m/user.go
View file @
5522be36
...
...
@@ -94,10 +94,7 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User
}
var
rows
[]
User
start
:=
0
for
end
<=
len
(
userIds
)
{
if
end
>
len
(
userIds
)
{
end
=
len
(
userIds
)
}
for
start
<
len
(
userIds
)
{
tmp
,
err
:=
GetUsersByIds
(
model
,
userIds
[
start
:
end
])
if
err
!=
nil
{
return
result
,
err
...
...
@@ -106,7 +103,10 @@ func GetUserMapByIds(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]User
}
start
+=
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
{
result
[
i
.
ID
]
=
i
...
...
domain/model/user_m/vip.go
View file @
5522be36
...
...
@@ -2,7 +2,6 @@ package user_m
import
(
"git.hilo.cn/hilo-common/domain"
"git.hilo.cn/hilo-common/mylogrus"
"git.hilo.cn/hilo-common/resource/mysql"
"gorm.io/gorm"
"gorm.io/gorm/clause"
...
...
@@ -85,7 +84,7 @@ func BatchGetVips(userIds []uint64) (map[uint64]*int64, error) {
}
start
+=
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment