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
618376b6
Commit
618376b6
authored
Mar 20, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改铭牌不够等级
parent
fab8ef36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
bizCode.go
myerr/bizerr/bizCode.go
+1
-0
group_power.go
route/group_power_r/group_power.go
+1
-1
No files found.
myerr/bizerr/bizCode.go
View file @
618376b6
...
@@ -91,6 +91,7 @@ var (
...
@@ -91,6 +91,7 @@ var (
GroupPowerCannotRepeated
=
myerr
.
NewBusinessCode
(
15018
,
"Cannot be repeated"
,
myerr
.
BusinessData
{})
// 不能重复
GroupPowerCannotRepeated
=
myerr
.
NewBusinessCode
(
15018
,
"Cannot be repeated"
,
myerr
.
BusinessData
{})
// 不能重复
GroupPowerCannotQuit
=
myerr
.
NewBusinessCode
(
15019
,
"Cannot quit"
,
myerr
.
BusinessData
{})
// 不能退出
GroupPowerCannotQuit
=
myerr
.
NewBusinessCode
(
15019
,
"Cannot quit"
,
myerr
.
BusinessData
{})
// 不能退出
GroupPowerUserHaveNoJoin
=
myerr
.
NewBusinessCode
(
15020
,
"User have no joined power"
,
myerr
.
BusinessData
{})
// 还未加入国家势力
GroupPowerUserHaveNoJoin
=
myerr
.
NewBusinessCode
(
15020
,
"User have no joined power"
,
myerr
.
BusinessData
{})
// 还未加入国家势力
GroupPowerChangeNameplate
=
myerr
.
NewBusinessCode
(
15021
,
"Can only be modified at the silver level"
,
myerr
.
BusinessData
{})
// 修改铭牌不够等级
TaskHasAward
=
myerr
.
NewBusinessCode
(
19001
,
"task has award"
,
myerr
.
BusinessData
{})
TaskHasAward
=
myerr
.
NewBusinessCode
(
19001
,
"task has award"
,
myerr
.
BusinessData
{})
...
...
route/group_power_r/group_power.go
View file @
618376b6
...
@@ -1392,7 +1392,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -1392,7 +1392,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
return
myContext
,
err
return
myContext
,
err
}
}
if
groupPInfo
.
Grade
<
1
{
if
groupPInfo
.
Grade
<
1
{
return
myContext
,
bizerr
.
GroupPower
HaveNoPower
return
myContext
,
bizerr
.
GroupPower
ChangeNameplate
}
}
// 检查铭牌长度和唯一性
// 检查铭牌长度和唯一性
if
len
(
para
.
Nameplate
)
>
10
{
if
len
(
para
.
Nameplate
)
>
10
{
...
...
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