fix version 1

This commit is contained in:
2026-09-22 21:15:34 +08:00
parent 9f86366638
commit d63d7e8b3a
277 changed files with 9959 additions and 1514 deletions

View File

@@ -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)
}