|
@@ -109,8 +109,8 @@ func Get(sess *httpsession.Session, checkCode string, w http.ResponseWriter, r *
|
|
|
//计次
|
|
|
times++
|
|
|
globalStore.Set(code, RandomDigits(len([]rune(code))))
|
|
|
- b := VerifyString(code, code)
|
|
|
- fmt.Println(b)
|
|
|
+ //b := VerifyString(code, code)
|
|
|
+ //fmt.Println(b)
|
|
|
redis.Put("other", cacheKey, times, int(ttl))
|
|
|
sess.Set(checkCode, code)
|
|
|
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|