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
bad1948e
Commit
bad1948e
authored
Mar 15, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/family' into feature/3.5
parents
d40ac5ea
cb7541b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
group_rank.go
cv/group_power_cv/group_rank.go
+1
-1
group_rank.go
route/group_power_r/group_rank.go
+1
-1
No files found.
cv/group_power_cv/group_rank.go
View file @
bad1948e
...
...
@@ -30,7 +30,7 @@ type CvGroupPowerMember struct {
type
CvGroupPowerGrade
struct
{
Grade
groupPower_e
.
GroupPowerGrade
`json:"grade"`
// 等级 0:青铜 1:白银 2:黄金 3:黑金
Exp
uint32
`json:"exp"`
// 经验值
NextExp
uint32
`json:"nextExp,omitempty"`
//
升
级所需经验值
NextExp
uint32
`json:"nextExp,omitempty"`
//
下个等
级所需经验值
ExpireAt
string
`json:"expireAt,omitempty"`
// 有效期
}
...
...
route/group_power_r/group_rank.go
View file @
bad1948e
...
...
@@ -198,7 +198,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
grade
:=
gradeM
[
groupPowerId
]
nextExp
:=
mysql
.
Num
(
0
)
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
-
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
]
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
}
expireAt
:=
""
if
grade
.
ExpireAt
.
After
(
time
.
Now
())
{
...
...
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