diff --git a/pkg/m/msg.go b/pkg/m/msg.go index f076654..d04c814 100644 --- a/pkg/m/msg.go +++ b/pkg/m/msg.go @@ -35,6 +35,7 @@ const ( ACCOUNT_EXIST = "账号已存在" JOB_NUMBER_EXIST = "工号已存在" Not_Found = "没有找到数据" + Not_Found_Artist = "没有找到此艺人" Not_Person_Verify = "您未进行实名认证" Forbidden_Ip = "网络地址被禁用" Mobile_Sended = "已经发送过,验证码尚可用" diff --git a/pkg/service/account.go b/pkg/service/account.go index e5d2527..bc67f04 100644 --- a/pkg/service/account.go +++ b/pkg/service/account.go @@ -1233,7 +1233,7 @@ func (a *AccountFieeProvider) SubNumGetInfo(_ context.Context, in *account.SubNu } if err := model.DB.Where("domain=? and sub_num=?", in.Domain, in.SubNum).Preload("RealName").First(&user).Error; err != nil { logger.Error(err) - return nil, errors.New(m.Not_Found) + return nil, errors.New(m.Not_Found_Artist) } realName := user.RealName if realName == nil {