From 2c77f012601b7788dc58b0c9fd99aad587983b0d Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 22 十月 2024 21:20:19 +0800
Subject: [PATCH] 完善楼层相关操作

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

diff --git a/controller/captureCtl.go b/controller/captureCtl.go
index 79efc0f..7727a24 100644
--- a/controller/captureCtl.go
+++ b/controller/captureCtl.go
@@ -14,7 +14,6 @@
 	"gat1400Exchange/pkg/logger"
 	"gat1400Exchange/repository"
 	"gat1400Exchange/service"
-	"gat1400Exchange/util"
 	"gat1400Exchange/vo"
 
 	"github.com/gin-gonic/gin"
@@ -63,7 +62,7 @@
 
 			today := time.Now().Format("2006-01-02")
 			imagePath := path.Join(config.LogConf.Path, "gat1400_face_images", today, img.ImageID+".jpeg")
-			err = util.WriteToFile(imagePath, imageBytes)
+			err = pkg.WriteToFile(imagePath, imageBytes)
 			if err == nil {
 				face.SubImageList.SubImageInfoObject[idx].Data = ""
 				face.SubImageList.SubImageInfoObject[idx].StoragePath = config.ImageConf.ImageUriPrefix + "/" + today + "/" + img.ImageID + ".jpeg"

--
Gitblit v1.8.0