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
2cf1e6c3
Commit
2cf1e6c3
authored
Mar 22, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:nextExp默认用最大值
parent
06790632
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
group_power.go
route/group_power_r/group_power.go
+2
-2
group_rank.go
route/group_power_r/group_rank.go
+1
-1
inner.go
route/group_power_r/inner.go
+2
-2
No files found.
route/group_power_r/group_power.go
View file @
2cf1e6c3
...
@@ -749,7 +749,7 @@ func GroupPowerInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -749,7 +749,7 @@ func GroupPowerInfo(c *gin.Context) (*mycontext.MyContext, error) {
return
myContext
,
err
return
myContext
,
err
}
}
grade
:=
gradeM
[
gp
.
ID
]
grade
:=
gradeM
[
gp
.
ID
]
nextExp
:=
mysql
.
Num
(
0
)
nextExp
:=
groupPower_e
.
GroupPowerGradeExp
[
groupPower_e
.
GroupPowerGradeMax
]
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
}
}
...
@@ -1450,7 +1450,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -1450,7 +1450,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
return
myContext
,
err
return
myContext
,
err
}
}
grade
:=
gradeM
[
gp
.
ID
]
grade
:=
gradeM
[
gp
.
ID
]
nextExp
:=
mysql
.
Num
(
0
)
nextExp
:=
groupPower_e
.
GroupPowerGradeExp
[
groupPower_e
.
GroupPowerGradeMax
]
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
}
}
...
...
route/group_power_r/group_rank.go
View file @
2cf1e6c3
...
@@ -261,7 +261,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -261,7 +261,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
return
myContext
,
bizerr
.
GroupNotFound
return
myContext
,
bizerr
.
GroupNotFound
}
}
grade
:=
gradeM
[
groupPowerId
]
grade
:=
gradeM
[
groupPowerId
]
nextExp
:=
mysql
.
Num
(
0
)
nextExp
:=
groupPower_e
.
GroupPowerGradeExp
[
groupPower_e
.
GroupPowerGradeMax
]
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
if
grade
.
Grade
!=
groupPower_e
.
GroupPowerGradeMax
{
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
nextExp
=
groupPower_e
.
GroupPowerGradeExp
[
grade
.
Grade
+
1
]
}
}
...
...
route/group_power_r/inner.go
View file @
2cf1e6c3
...
@@ -77,10 +77,10 @@ func MGetGroupPowers(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -77,10 +77,10 @@ func MGetGroupPowers(c *gin.Context) (*mycontext.MyContext, error) {
func
Test
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
func
Test
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
var
model
=
domain
.
CreateModelNil
()
var
model
=
domain
.
CreateModelNil
()
if
err
:=
msg_m
.
NewUserRecord
(
model
,
45
22
,
msg_e
.
GroupPowerUserJoin
,
"frozen"
,
4522
,
""
,
""
,
""
,
""
,
""
)
.
Persistent
();
err
!=
nil
{
if
err
:=
msg_m
.
NewUserRecord
(
model
,
45
49
,
msg_e
.
GroupPowerExpireNotice
,
""
,
4549
,
""
,
""
,
""
,
""
,
""
)
.
Persistent
();
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
mgrUser
,
_
:=
user_m
.
GetUser
(
model
,
45
22
)
mgrUser
,
_
:=
user_m
.
GetUser
(
model
,
45
49
)
err
:=
msg_m
.
SendEmasMsgAssistant
(
model
,
mgrUser
.
ExternalId
,
mgrUser
.
DeviceType
)
err
:=
msg_m
.
SendEmasMsgAssistant
(
model
,
mgrUser
.
ExternalId
,
mgrUser
.
DeviceType
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
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