service/resend.go
@@ -11,10 +11,16 @@ func ResendImageData() { var cacheMod models.Cache cacheItems, _ := cacheMod.FindAll() logger.Debug("Start resend task. cache len:%d", len(cacheItems)) total, _ := cacheMod.Count() logger.Debug("Start resend task. cache len:%d", total) for _, c := range cacheItems { for i := 0; i < int(total); i++ { var c models.Cache err := c.First() if err != nil { logger.Error(err.Error()) return } if c.Type == "1400" { if client.FaceCapture([]byte(c.Data)) != vo.StatusSuccess { c.UpdateRetryCount()