From bb48a3ef0bdc2b5a0b50ca429bc5bc0a118f9732 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 13 九月 2024 02:49:22 +0800
Subject: [PATCH] use goroutinne run rfid read

---
 controller/captureCtl.go |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/controller/captureCtl.go b/controller/captureCtl.go
index 5c7d914..79efc0f 100644
--- a/controller/captureCtl.go
+++ b/controller/captureCtl.go
@@ -3,7 +3,6 @@
 import (
 	"encoding/base64"
 	"fmt"
-	"gat1400Exchange/util"
 	"math/rand"
 	"net/http"
 	"path"
@@ -15,6 +14,7 @@
 	"gat1400Exchange/pkg/logger"
 	"gat1400Exchange/repository"
 	"gat1400Exchange/service"
+	"gat1400Exchange/util"
 	"gat1400Exchange/vo"
 
 	"github.com/gin-gonic/gin"
@@ -82,6 +82,10 @@
 		go a.Repository.FaceForward(req.FaceListObject.FaceObject)
 	}
 
+	if config.ForwardConf.RecordServer != "" {
+		go a.Repository.PubRecordMessage(face.DeviceID, face.FaceID)
+	}
+
 	rspMsg := vo.ResponseStatus{
 		RequestURL:   c.FullPath(),
 		StatusCode:   vo.StatusSuccess,

--
Gitblit v1.8.0