瀏覽代碼

GetPhoneVFCode

lhs 5 年之前
父節點
當前提交
9299126a60
共有 1 個文件被更改,包括 2 次插入2 次删除
  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()