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
59bb0f01
Commit
59bb0f01
authored
Mar 22, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
错误码提示翻译
parent
b9cf5108
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
constDef.go
common/constDef.go
+1
-0
3.5.0.sql
mysql/3.5.0.sql
+16
-1
group_power.go
route/group_power_r/group_power.go
+2
-2
No files found.
common/constDef.go
View file @
59bb0f01
...
@@ -106,6 +106,7 @@ const (
...
@@ -106,6 +106,7 @@ const (
MSG_ID_DEALER_CAN_NOT_SOLE
MsgIdType
=
166
// 此用户已有家族代理,不能出售钻石
MSG_ID_DEALER_CAN_NOT_SOLE
MsgIdType
=
166
// 此用户已有家族代理,不能出售钻石
MSG_ID_BUY_FROM_FAMILY
MsgIdType
=
167
// 请向本家族代理购买钻石
MSG_ID_BUY_FROM_FAMILY
MsgIdType
=
167
// 请向本家族代理购买钻石
MSG_ID_NEED_JOIN_FAMILY
MsgIdType
=
168
// 请加入代理的家族后进行购买
MSG_ID_NEED_JOIN_FAMILY
MsgIdType
=
168
// 请加入代理的家族后进行购买
MSG_ID_SET_FAMILY_NAMEPL
MsgIdType
=
169
// 等级不够不能修改家族铭牌
ADD_GROUP_FAILED
AddGroupResultType
=
0
ADD_GROUP_FAILED
AddGroupResultType
=
0
ADD_GROUP_DONE
AddGroupResultType
=
1
ADD_GROUP_DONE
AddGroupResultType
=
1
...
...
mysql/3.5.0.sql
View file @
59bb0f01
...
@@ -41,4 +41,19 @@ CREATE TABLE `group_power_quit_log` (
...
@@ -41,4 +41,19 @@ CREATE TABLE `group_power_quit_log` (
KEY
`user_id`
(
`user_id`
)
USING
BTREE
,
KEY
`user_id`
(
`user_id`
)
USING
BTREE
,
KEY
`created_time`
(
`created_time`
)
USING
BTREE
,
KEY
`created_time`
(
`created_time`
)
USING
BTREE
,
KEY
`mgr_id`
(
`mgr_id`
)
USING
BTREE
KEY
`mgr_id`
(
`mgr_id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
\ No newline at end of file
INSERT
INTO
hilo
.
res_multi_text
(
msg_id
,
`language`
,
content
)
VALUES
(
169
,
'zh'
,
'白银等级才可以修改'
),
(
169
,
'en'
,
'Can only be modified at the silver level'
),
(
169
,
'ar'
,
'لا يمكن تعديله إلا على المستوى الفضي'
),
(
169
,
'tr'
,
'Yalnızca gümüş seviyesinde değiştirilebilir'
),
(
169
,
'id'
,
'Hanya dapat dimodifikasi pada level perak'
),
(
169
,
'ru'
,
'Можно модифицировать только на серебряном уровне'
),
(
169
,
'ko'
,
'실버 등급에서만 수정 가능'
),
(
169
,
'pt'
,
'Só pode ser modificado no nível prata'
),
(
169
,
'th'
,
'สามารถแก้ไขได้ที่ระดับซิลเวอร์เท่านั้น'
),
(
169
,
'ca'
,
'Solo se puede modificar en el nivel plata.'
),
(
169
,
'hi'
,
'केवल चांदी के स्तर पर संशोधित किया जा सकता है'
),
(
169
,
'vi'
,
'Chỉ có thể được sửa đổi ở cấp độ bạc'
),
(
169
,
'ur'
,
'صرف چاندی کی سطح پر نظر ثانی کی جا سکتی ہے'
);
\ No newline at end of file
route/group_power_r/group_power.go
View file @
59bb0f01
...
@@ -1378,7 +1378,7 @@ func GroupPowerSetAdmin(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -1378,7 +1378,7 @@ func GroupPowerSetAdmin(c *gin.Context) (*mycontext.MyContext, error) {
// @Router /v1/groupPower/info/set [post]
// @Router /v1/groupPower/info/set [post]
func
GroupPowerSetInfo
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
func
GroupPowerSetInfo
(
c
*
gin
.
Context
)
(
*
mycontext
.
MyContext
,
error
)
{
myContext
:=
mycontext
.
CreateMyContext
(
c
.
Keys
)
myContext
:=
mycontext
.
CreateMyContext
(
c
.
Keys
)
userId
,
err
:=
req
.
GetUserId
(
c
)
userId
,
lang
,
err
:=
req
.
GetUserIdLang
(
c
,
myContext
)
if
err
!=
nil
{
if
err
!=
nil
{
return
myContext
,
err
return
myContext
,
err
}
}
...
@@ -1420,7 +1420,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -1420,7 +1420,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
}
}
grade
:=
gradeM
[
myGroupPUser
.
GroupPowerId
]
grade
:=
gradeM
[
myGroupPUser
.
GroupPowerId
]
if
grade
.
Grade
<
1
{
if
grade
.
Grade
<
1
{
return
myContext
,
bizerr
.
GroupPowerChangeNameplate
return
myContext
,
res_m
.
GetErrByLanguage
(
model
.
Db
,
common
.
MSG_ID_SET_FAMILY_NAMEPL
,
lang
,
bizerr
.
GroupPowerChangeNameplate
)
}
}
// 检查铭牌长度和唯一性
// 检查铭牌长度和唯一性
if
len
(
para
.
Nameplate
)
>
6
{
if
len
(
para
.
Nameplate
)
>
6
{
...
...
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