diff --git a/domain/service/diamond_s/diamond.go b/domain/service/diamond_s/diamond.go index a3eb76e81ab594ba2fb23ae780824e1dbf8363f5..dc1a44612783d34b714cd7db6a8aa2c621705aca 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 1aec2dde4ebd1789b9e5c6cdfd5f37f07c6ea75a..a86a3282b053ef7231bbba084e17339fe64664d6 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{})