From 424e2a5e14be4332d6549f895007d8b2f66cce58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=99=AF=E9=98=B3?= <1656488874@qq.com> Date: Fri, 27 Sep 2019 12:07:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=87=8D=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=88=AC=E8=99=AB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/spider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/routes/spider.go b/backend/routes/spider.go index 9357ca5e..064541bd 100644 --- a/backend/routes/spider.go +++ b/backend/routes/spider.go @@ -179,6 +179,10 @@ func PutSpider(c *gin.Context) { FileId: fid, } _ = spider.Add() + } else { + // 更新file_id + spider.FileId = fid + _ = spider.Save() } c.JSON(http.StatusOK, Response{