From 546ff57d6a623274c55750d3170f78a5f225b4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Thu, 22 Jun 2023 05:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/images.go b/routers/images.go index 64b503a..962431c 100644 --- a/routers/images.go +++ b/routers/images.go @@ -175,7 +175,8 @@ func ImagesPost(w http.ResponseWriter, r *http.Request) { // 推理图像 go model.Inference(image_list, func(img models.Image) { log.Println("推理完成") - images_websocket_manager.NotifyTaskChange(task, img) + images_websocket_manager.NotifyTaskChange(task, img) // 通知 websocket + configs.ORMDB().Model(&img).Updates(img) // 更新到数据库 }) // 存储图片信息到数据库