Browse Source

提交代码

tags/v1.22.7.1
ychao_1983 3 years ago
parent
commit
49157ddb5b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/user/auth.go

+ 2
- 1
routers/user/auth.go View File

@@ -8,6 +8,7 @@ package user
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/gomodule/redigo/redis"
"net/http" "net/http"
"strings" "strings"


@@ -1845,7 +1846,7 @@ func SendVerifyCode(ctx *context.Context, slideImage *slideimage.SlideImage, for
defer redisConn.Close() defer redisConn.Close()


sendTimes, err := phoneService.GetPhoneNumberSendTimes(redisConn, phoneNumber) sendTimes, err := phoneService.GetPhoneNumberSendTimes(redisConn, phoneNumber)
if err != nil {
if err != nil && err!=redis.ErrNil {
log.Warn("redis err", err) log.Warn("redis err", err)
ctx.JSON(http.StatusOK, models.BaseErrorMessage(ctx.Tr("phone.query_err"))) ctx.JSON(http.StatusOK, models.BaseErrorMessage(ctx.Tr("phone.query_err")))
return return


Loading…
Cancel
Save