From 2ccfe257f3477e02866607b3a23113e25db9b34a Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Tue, 19 Sep 2023 14:44:59 +0800 Subject: [PATCH] fix: phone already register code --- internal/rpc/chat/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/chat/login.go b/internal/rpc/chat/login.go index b0edf91a..a70c125d 100644 --- a/internal/rpc/chat/login.go +++ b/internal/rpc/chat/login.go @@ -62,7 +62,7 @@ func (o *chatSvr) SendVerifyCode(ctx context.Context, req *chat.SendVerifyCodeRe } _, err := o.Database.TakeAttributeByPhone(ctx, req.AreaCode, req.PhoneNumber) if err == nil { - return nil, errs.ErrArgs.Wrap("phone already register") + return nil, eerrs.ErrPhoneAlreadyRegister.Wrap("phone already register") } else if !o.Database.IsNotFound(err) { return nil, err }