diff --git a/myerr/bizerr/bizCode.go b/myerr/bizerr/bizCode.go index 752b8c43156e9d28284f76264d4823ba0f7c3073..b5f1cbce33b5ac63a1242b07191d8036e39f3a25 100644 --- a/myerr/bizerr/bizCode.go +++ b/myerr/bizerr/bizCode.go @@ -69,7 +69,7 @@ var ( GroupCustomThemeLimit = myerr.NewBusinessCode(14020, "Group Custom Theme Limit", myerr.BusinessData{}) //群主题定制数量只能是5个 GroupSupportIpLimit = myerr.NewBusinessCode(14024, "ID:%v is a duplicate account, please select another user to receive the reward", myerr.BusinessData{}) // 群组扶持ip限制 GroupNoPowerToSvip6 = myerr.NewBusinessCode(14026, "Cannot use this permission for SVIP6", myerr.BusinessData{}) // 踢出,无法对SVIP6使用此权限 - GroupSupportWealthLevel8 = myerr.NewBusinessCode(14027, "Wealth level not reach 8", myerr.BusinessData{}) // 财富等级8级 + GroupSupportWealthLevel3 = myerr.NewBusinessCode(14027, "Wealth level not reach 3", myerr.BusinessData{}) // 财富等级3级 // 家族 GroupPowerHasJoinOther = myerr.NewBusinessCode(15001, "You already have joined power, please exit first", myerr.BusinessData{}) // 已经加入了其它国家势力 diff --git a/route/group_r/group_support.go b/route/group_r/group_support.go index 805114f045ddd168ba45d3a01a48af71946b75d0..3d5016bc0611db78b08859d4bf1f5c83cf76dee7 100644 --- a/route/group_r/group_support.go +++ b/route/group_r/group_support.go @@ -229,9 +229,9 @@ func TryAddSupporter(c *gin.Context) (*mycontext.MyContext, error) { } if wealthGrade < 3 { if msg, _ := res_m.GetResMultiTextBy(model.DB(), 187, lang); msg != nil { // 187:res_multi_text 财富等级为到8级 - return myContext, myerr.NewBusinessCodeNoCheck(bizerr.GroupSupportWealthLevel8.GetCode(), msg.Content, myerr.BusinessData{}) + return myContext, myerr.NewBusinessCodeNoCheck(bizerr.GroupSupportWealthLevel3.GetCode(), msg.Content, myerr.BusinessData{}) } - return myContext, bizerr.GroupSupportWealthLevel8 + return myContext, bizerr.GroupSupportWealthLevel3 } // 判断用户是否作为助手领取过奖励 sameImeiUsers, err := user_m.GetSameImeiMap(model, userId)