Commit 59bb0f01 authored by chenweijian's avatar chenweijian

错误码提示翻译

parent b9cf5108
......@@ -106,6 +106,7 @@ const (
MSG_ID_DEALER_CAN_NOT_SOLE MsgIdType = 166 // 此用户已有家族代理,不能出售钻石
MSG_ID_BUY_FROM_FAMILY MsgIdType = 167 // 请向本家族代理购买钻石
MSG_ID_NEED_JOIN_FAMILY MsgIdType = 168 // 请加入代理的家族后进行购买
MSG_ID_SET_FAMILY_NAMEPL MsgIdType = 169 // 等级不够不能修改家族铭牌
ADD_GROUP_FAILED AddGroupResultType = 0
ADD_GROUP_DONE AddGroupResultType = 1
......
......@@ -41,4 +41,19 @@ CREATE TABLE `group_power_quit_log` (
KEY `user_id` (`user_id`) USING BTREE,
KEY `created_time` (`created_time`) USING BTREE,
KEY `mgr_id` (`mgr_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
\ No newline at end of file
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
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
......@@ -1378,7 +1378,7 @@ func GroupPowerSetAdmin(c *gin.Context) (*mycontext.MyContext, error) {
// @Router /v1/groupPower/info/set [post]
func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
myContext := mycontext.CreateMyContext(c.Keys)
userId, err := req.GetUserId(c)
userId, lang, err := req.GetUserIdLang(c, myContext)
if err != nil {
return myContext, err
}
......@@ -1420,7 +1420,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) {
}
grade := gradeM[myGroupPUser.GroupPowerId]
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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment