From 4b169c6942ebfb46db4ddb881b9c936061e34447 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Tue, 4 Apr 2023 14:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/service/diamond_s/diamond.go | 3 +-- myerr/bizerr/bizCode.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/domain/service/diamond_s/diamond.go b/domain/service/diamond_s/diamond.go index a3eb76e..dc1a446 100644 --- a/domain/service/diamond_s/diamond.go +++ b/domain/service/diamond_s/diamond.go @@ -1,7 +1,6 @@ package diamond_s import ( - "errors" "git.hilo.cn/hilo-common/domain" "git.hilo.cn/hilo-common/mycontext" "git.hilo.cn/hilo-common/resource/mysql" @@ -39,7 +38,7 @@ func (this *DiamondService) CheckDealerTransferFamilyLimit(dealerId, userId uint return err } if dealerArea != area { - return errors.New("fail") + return bizerr.DealerCannotSaleToOtherArea } // 代理、用户是否加入了家族 diff --git a/myerr/bizerr/bizCode.go b/myerr/bizerr/bizCode.go index 1aec2dd..a86a328 100644 --- a/myerr/bizerr/bizCode.go +++ b/myerr/bizerr/bizCode.go @@ -94,6 +94,7 @@ var ( GroupPowerChangeNameplate = myerr.NewBusinessCode(15021, "Can only be modified at the silver level", myerr.BusinessData{}) // 修改铭牌不够等级 GroupPowerMemberMax = myerr.NewBusinessCode(15022, "The family size has reached the upper limit", myerr.BusinessData{}) // 家族人数达到上限 GroupPowerCannotJoin = myerr.NewBusinessCode(15023, "You cannot join", myerr.BusinessData{}) // 不能加入家族 + DealerCannotSaleToOtherArea = myerr.NewBusinessCode(15024, "Fail", myerr.BusinessData{}) // 代理转账失败-不同地区 TaskHasAward = myerr.NewBusinessCode(19001, "task has award", myerr.BusinessData{}) -- 2.22.0