fix version 1
This commit is contained in:
@@ -27,5 +27,10 @@ func Code(ctx context.Context, in *pb.RegisterRequest) (reply *pb.RegisterReply,
|
||||
return nil, errcode.ErrAlreadyExists
|
||||
}
|
||||
|
||||
// 校验短信验证码(一次性)
|
||||
if err := models.VerifySmsCode(ctx, in.Phone, in.Code); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return Do(in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user