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
15b3da06
Commit
15b3da06
authored
Aug 18, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:日志差不多了
parent
8e903140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
userNoble.go
domain/model/noble_m/userNoble.go
+2
-2
medal.go
domain/model/user_m/medal.go
+2
-2
No files found.
domain/model/noble_m/userNoble.go
View file @
15b3da06
...
@@ -144,7 +144,7 @@ func BatchGetActiveNoble(db *gorm.DB, userIds []uint64) (map[uint64]UserNoble, e
...
@@ -144,7 +144,7 @@ func BatchGetActiveNoble(db *gorm.DB, userIds []uint64) (map[uint64]UserNoble, e
start
+=
NUM
start
+=
NUM
end
+=
NUM
end
+=
NUM
}
}
mylogrus
.
MyLog
.
Infof
(
"BatchGetActiveNoble expected:%v,actual:%v,notEndUids:%v"
,
len
(
userIds
),
len
(
result
),
notEndUids
)
//
mylogrus.MyLog.Infof("BatchGetActiveNoble expected:%v,actual:%v,notEndUids:%v", len(userIds), len(result), notEndUids)
if
len
(
userIds
)
!=
len
(
result
)
{
if
len
(
userIds
)
!=
len
(
result
)
{
mylogrus
.
MyLog
.
Warnf
(
"BatchGetActiveNoble expected:%v"
,
userIds
)
mylogrus
.
MyLog
.
Warnf
(
"BatchGetActiveNoble expected:%v"
,
userIds
)
}
}
...
@@ -177,4 +177,4 @@ func BatchGetNobleLevel(db *gorm.DB, userIds []uint64) (map[uint64]uint16, error
...
@@ -177,4 +177,4 @@ func BatchGetNobleLevel(db *gorm.DB, userIds []uint64) (map[uint64]uint16, error
result
[
i
]
=
m
[
i
]
.
Level
result
[
i
]
=
m
[
i
]
.
Level
}
}
return
result
,
nil
return
result
,
nil
}
}
\ No newline at end of file
domain/model/user_m/medal.go
View file @
15b3da06
...
@@ -48,8 +48,8 @@ func GetUserMedalMerge(logger *logrus.Entry, db *gorm.DB, userId mysql.ID) ([]ui
...
@@ -48,8 +48,8 @@ func GetUserMedalMerge(logger *logrus.Entry, db *gorm.DB, userId mysql.ID) ([]ui
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
logger
.
Infof
(
"GetUserMedalLevelMap, user %d, medalMap %+v"
,
medalTypes
)
//
logger.Infof("GetUserMedalLevelMap, user %d, medalMap %+v", medalTypes)
logger
.
Infof
(
"GetUserMedalLevelMap, user %d, medalList %+v"
,
medalList
)
//
logger.Infof("GetUserMedalLevelMap, user %d, medalList %+v", medalList)
maxGrades
:=
make
(
map
[
uint8
]
int
,
0
)
maxGrades
:=
make
(
map
[
uint8
]
int
,
0
)
maxMedalIds
:=
make
(
map
[
uint8
]
uint32
,
0
)
maxMedalIds
:=
make
(
map
[
uint8
]
uint32
,
0
)
...
...
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