From 790c60c55054b3e75043eaed11eaef8584d2001d Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 16 五月 2024 09:57:59 +0800
Subject: [PATCH] 添加级联,订阅功能

---
 service/resend.go |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/service/resend.go b/service/resend.go
index e56ffc1..ac62207 100644
--- a/service/resend.go
+++ b/service/resend.go
@@ -10,15 +10,15 @@
 )
 
 func ResendImageData() {
-	var cacheMod models.Cache
-	cacheItems, _ := cacheMod.FindAll()
-
-	logger.Debug("Start resend task. cache len:%d", len(cacheItems))
 	if err := util.HttpGet(config.ForwardConf.SyncServer); err != nil {
 		logger.Debug("The server cannot be reached. %s", err.Error())
 		return
 	}
 
+	var cacheMod models.Cache
+	cacheItems, _ := cacheMod.FindAll()
+	logger.Debug("Start resend task. cache len:%d", len(cacheItems))
+
 	for _, c := range cacheItems {
 		if c.Type == "1400" {
 			if client.FaceCapture([]byte(c.Data)) != vo.StatusSuccess {

--
Gitblit v1.8.0