fix version 1
This commit is contained in:
@@ -22,6 +22,11 @@ func Quick(ctx context.Context, in *pb.LoginByCodeRequest) (reply *pb.LoginReply
|
||||
return nil, errcode.ErrInvalidArgument
|
||||
}
|
||||
|
||||
// 校验短信验证码(一次性)
|
||||
if err := models.VerifySmsCode(ctx, in.Phone, in.Code); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var pa models.PassportAccount
|
||||
err = impl.DBService.Where("phone = ?", in.Phone).First(&pa).Error
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user