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
8d1719f2
Commit
8d1719f2
authored
Mar 15, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/family' into feature/3.5
parents
0542228d
97424e43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
group_rank.go
cv/group_power_cv/group_rank.go
+1
-1
group_rank.go
route/group_power_r/group_rank.go
+3
-3
No files found.
cv/group_power_cv/group_rank.go
View file @
8d1719f2
...
@@ -32,7 +32,6 @@ type CvGroupPowerGrade struct {
...
@@ -32,7 +32,6 @@ type CvGroupPowerGrade struct {
Exp
uint32
`json:"exp"`
// 经验值
Exp
uint32
`json:"exp"`
// 经验值
NextExp
uint32
`json:"nextExp,omitempty"`
// 升级所需经验值
NextExp
uint32
`json:"nextExp,omitempty"`
// 升级所需经验值
ExpireAt
string
`json:"expireAt,omitempty"`
// 有效期
ExpireAt
string
`json:"expireAt,omitempty"`
// 有效期
ShowExp
bool
`json:"showExp"`
// 是否展示经验值
}
}
// 家族榜单
// 家族榜单
...
@@ -72,6 +71,7 @@ type CvGroupPowerGradeDetail struct {
...
@@ -72,6 +71,7 @@ type CvGroupPowerGradeDetail struct {
GroupPowerGrade
CvGroupPowerGrade
`json:"groupPowerGrade"`
// 家族等级信息
GroupPowerGrade
CvGroupPowerGrade
`json:"groupPowerGrade"`
// 家族等级信息
ResGradeList
[]
CvResGrade
`json:"resGradeList"`
// 资源等级列表,青铜、白银、黄金、黑金
ResGradeList
[]
CvResGrade
`json:"resGradeList"`
// 资源等级列表,青铜、白银、黄金、黑金
PrivilegeList
[]
CvPrivilege
`json:"privilegeList"`
// 等级特权
PrivilegeList
[]
CvPrivilege
`json:"privilegeList"`
// 等级特权
IsMember
bool
`json:"isMember"`
// 是否家族成员
}
}
var
CvResGradeList
=
[]
CvResGrade
{
var
CvResGradeList
=
[]
CvResGrade
{
...
...
route/group_power_r/group_rank.go
View file @
8d1719f2
...
@@ -204,11 +204,11 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -204,11 +204,11 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
if
grade
.
ExpireAt
.
After
(
time
.
Now
())
{
if
grade
.
ExpireAt
.
After
(
time
.
Now
())
{
expireAt
=
grade
.
ExpireAt
.
Format
(
"2006-01-02"
)
expireAt
=
grade
.
ExpireAt
.
Format
(
"2006-01-02"
)
}
}
showExp
:=
false
isMember
:=
false
if
exits
,
_
,
err
:=
groupPower_m
.
CheckGroupPowerUser
(
model
,
userId
);
err
!=
nil
{
if
exits
,
_
,
err
:=
groupPower_m
.
CheckGroupPowerUser
(
model
,
userId
);
err
!=
nil
{
return
myContext
,
err
return
myContext
,
err
}
else
if
exits
{
}
else
if
exits
{
showExp
=
true
isMember
=
true
}
}
response
:=
group_power_cv
.
CvGroupPowerGradeDetail
{
response
:=
group_power_cv
.
CvGroupPowerGradeDetail
{
GroupPowerBase
:
group_power_cv
.
CvGroupPowerBase
{
GroupPowerBase
:
group_power_cv
.
CvGroupPowerBase
{
...
@@ -222,10 +222,10 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -222,10 +222,10 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
Exp
:
grade
.
Exp
,
Exp
:
grade
.
Exp
,
NextExp
:
nextExp
,
NextExp
:
nextExp
,
ExpireAt
:
expireAt
,
ExpireAt
:
expireAt
,
ShowExp
:
showExp
,
},
},
ResGradeList
:
group_power_cv
.
CvResGradeList
,
ResGradeList
:
group_power_cv
.
CvResGradeList
,
PrivilegeList
:
group_power_cv
.
GroupPowerGradePrivilegeNum
[
grade
.
Grade
],
PrivilegeList
:
group_power_cv
.
GroupPowerGradePrivilegeNum
[
grade
.
Grade
],
IsMember
:
isMember
,
}
}
resp
.
ResponseOk
(
c
,
response
)
resp
.
ResponseOk
(
c
,
response
)
return
myContext
,
nil
return
myContext
,
nil
...
...
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