|
|
@@ -78,7 +78,7 @@ func (Auth) GenVerifyPic(config *base64Captcha.DriverString) (id string, pic str
|
|
|
}
|
|
|
|
|
|
// 手机号发送短信验证码
|
|
|
-func (a Auth) GenVFCode(codeType int, phone string, ip string) (err error) {
|
|
|
+func (a Auth) GenVFCode(codeType int, phone string, ip string, picCode string) (err error) {
|
|
|
//图形验证码验证
|
|
|
//if !store.Verify(picId, picCode, true) {
|
|
|
// return errors.ErrPicVerifyCode
|
|
|
@@ -92,7 +92,7 @@ func (a Auth) GenVFCode(codeType int, phone string, ip string) (err error) {
|
|
|
//rand.Seed(time.Now().Unix())
|
|
|
//smsInt := rand.Int31n(10000)
|
|
|
//smsCode := strconv.Itoa(smsInt)
|
|
|
- smsCode := "12345678"
|
|
|
+ smsCode := "4321"
|
|
|
|
|
|
//存储短信验证码前判断redis中是否有该手机号对应验证码,有说明还没失效
|
|
|
redisdb := rdb.GetRedis()
|