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{