Browse Source

提交代码

pull/2359/head
ychao_1983 3 years ago
parent
commit
da58267eeb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      modules/slideimage/slideimage.go

+ 1
- 0
modules/slideimage/slideimage.go View File

@@ -173,6 +173,7 @@ func (s *SlideImage) Verify(id string, x int) bool {
imageRandX, _ := strconv.Atoi(values[1])
if int(math.Abs(float64(imageRandX-x))) <= s.Tolerance {
redis_client.SETNX(redisConn, s.mkey(id), "1", s.Expiration)
return true
}
return false



Loading…
Cancel
Save