From 618376b63db6c326edb76142e9d105ac0d8d6e48 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 20 Mar 2023 13:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=93=AD=E7=89=8C=E4=B8=8D?= =?UTF-8?q?=E5=A4=9F=E7=AD=89=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- myerr/bizerr/bizCode.go | 1 + route/group_power_r/group_power.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/myerr/bizerr/bizCode.go b/myerr/bizerr/bizCode.go index 73eceab..918fda3 100644 --- a/myerr/bizerr/bizCode.go +++ b/myerr/bizerr/bizCode.go @@ -91,6 +91,7 @@ var ( GroupPowerCannotRepeated = myerr.NewBusinessCode(15018, "Cannot be repeated", myerr.BusinessData{}) // 不能重复 GroupPowerCannotQuit = myerr.NewBusinessCode(15019, "Cannot quit", 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{}) diff --git a/route/group_power_r/group_power.go b/route/group_power_r/group_power.go index c5d8e03..6e52770 100644 --- a/route/group_power_r/group_power.go +++ b/route/group_power_r/group_power.go @@ -1392,7 +1392,7 @@ func GroupPowerSetInfo(c *gin.Context) (*mycontext.MyContext, error) { return myContext, err } if groupPInfo.Grade < 1 { - return myContext, bizerr.GroupPowerHaveNoPower + return myContext, bizerr.GroupPowerChangeNameplate } // 检查铭牌长度和唯一性 if len(para.Nameplate) > 10 { -- 2.22.0