Selaa lähdekoodia

GetPhoneVFCode

lhs 5 vuotta sitten
vanhempi
commit
9299126a60
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      service/auth.go

+ 2 - 2
service/auth.go

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