From cbf0b0d150007bc0bd89c0c9d8c3de194e01a408 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 7 Jul 2023 10:43:46 +0800 Subject: [PATCH] toast 3 --- myerr/bizerr/bizCode.go | 2 +- route/group_r/group_support.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/myerr/bizerr/bizCode.go b/myerr/bizerr/bizCode.go index 752b8c4..b5f1cbc 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 805114f..3d5016b 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) -- 2.22.0